From 37aa98f669ead6606be967c8c571390ea09cded2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 26 Dec 2000 08:51:51 +0000 Subject: Disable the test if the working directory has the sticky bit set. --- tests/cp/cp-parents | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/cp/cp-parents') 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 -- cgit v1.2.3-54-g00ecf