summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-26 08:51:51 +0000
committerJim Meyering <jim@meyering.net>2000-12-26 08:51:51 +0000
commit37aa98f669ead6606be967c8c571390ea09cded2 (patch)
tree95692012a524ecb310f254bc0d1d2be148d476a7
parent5c265cddbf07489a9758f0dbe2892ad8880d5833 (diff)
downloadcoreutils-37aa98f669ead6606be967c8c571390ea09cded2.tar.xz
Disable the test if the working directory has the sticky bit set.
-rwxr-xr-xtests/cp/cp-parents9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/cp/cp-parents b/tests/cp/cp-parents
index 313ead5db..7d6026c25 100755
--- a/tests/cp/cp-parents
+++ b/tests/cp/cp-parents
@@ -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