diff options
Diffstat (limited to 'tests/cp/slink-2-slink')
-rwxr-xr-x | tests/cp/slink-2-slink | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/cp/slink-2-slink b/tests/cp/slink-2-slink index 90a3f6f2d..837edd512 100755 --- a/tests/cp/slink-2-slink +++ b/tests/cp/slink-2-slink @@ -13,12 +13,12 @@ fi . $srcdir/../lang-default pwd=`pwd` -tmp=sl2sl-$$ -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 $?' 1 2 13 15 framework_failure=0 -mkdir $tmp || framework_failure=1 +mkdir -p $tmp || framework_failure=1 cd $tmp touch file || framework_failure=1 @@ -36,4 +36,4 @@ fail=0 cp --update --no-dereference a b || fail=1 cp --update --no-dereference c d || fail=1 -exit $fail +(exit $fail); exit |