Disable the test if the working directory has the sticky bit set.
authorJim Meyering <jim@meyering.net>
Tue, 26 Dec 2000 08:43:03 +0000 (08:43 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 26 Dec 2000 08:43:03 +0000 (08:43 +0000)
tests/mkdir/perm

index 1556f1ddfd5ae918d9cec1ee2f53d906fc6479ed..96d6a5702a2e089fee06bb532613fb9f764279ab 100755 (executable)
@@ -13,6 +13,12 @@ trap 'status=$?; cd $pwd; chmod -R u+rwx $tmp; rm -rf $tmp && exit $status' 0
 trap '(exit $?); exit' 1 2 13 15
 
 framework_failure=0
+
+# Record absolute path of srcdir.
+cd $srcdir || framework_failure=1
+abs_srcdir=`pwd`
+
+cd $pwd || framework_failure=1
 mkdir $tmp || framework_failure=1
 cd $tmp || framework_failure=1
 
@@ -21,6 +27,8 @@ if test $framework_failure = 1; then
   (exit 1); exit
 fi
 
+. $abs_srcdir/../sticky-check
+
 fail=0
 
 #                         parent        parent/dir