summaryrefslogtreecommitdiffstats
path: root/141/regr/testcase
diff options
context:
space:
mode:
Diffstat (limited to '141/regr/testcase')
-rwxr-xr-x141/regr/testcase18
1 files changed, 18 insertions, 0 deletions
diff --git a/141/regr/testcase b/141/regr/testcase
new file mode 100755
index 0000000..6f1fb15
--- /dev/null
+++ b/141/regr/testcase
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+description="# (141) GF_OPTION_TYPE_PATH should check for presence of ".." in path"
+comments="#Should return EINVAL if ".." is found"
+
+source ../../init
+
+start_glusterfs --no-clients
+
+if [ $(grep "invalid path given" $LOGDIR/$(hostname)-server1.log | wc -l) -ne 0 ];then
+ ok $description
+else
+ not_ok $description
+ comment $comments
+fi
+
+cleanup_glusterfs
+