diff options
Diffstat (limited to 'tests/cp/link-preserve')
-rwxr-xr-x | tests/cp/link-preserve | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cp/link-preserve b/tests/cp/link-preserve index 79e355e6d..bb1dda6d6 100755 --- a/tests/cp/link-preserve +++ b/tests/cp/link-preserve @@ -11,12 +11,12 @@ fi . $srcdir/../lang-default pwd=`pwd` -tmp=lp.$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$ +trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 -mkdir $tmp || framework_failure=1 +mkdir -p $tmp || framework_failure=1 cd $tmp || framework_failure=1 touch a || framework_failure=1 ln a b || framework_failure=1 |