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

index 313ead5db6eac5ef478e4d622d04e5c197135bef..7d6026c25e43aae8c7244a913c2db4c836301d8e 100755 (executable)
@@ -14,9 +14,16 @@ tmp=cp-parents.$$
 trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $tmp && exit $status' 0
 trap '(exit $?); exit' 1 2 13 15
 
+framework_failure=0
+
+# Record absolute path of srcdir and cd back to current dir.
+cd $srcdir || framework_failure=1
+abs_srcdir=`pwd`
+cd $pwd || framework_failure=1
+
+. $abs_srcdir/../sticky-check
 . $srcdir/../envvar-check
 
-framework_failure=0
 mkdir $tmp || framework_failure=1
 cd $tmp || framework_failure=1
 mkdir foo bar || framework_failure=1