diff options
Diffstat (limited to 'tests/cp/r-vs-symlink')
-rwxr-xr-x | tests/cp/r-vs-symlink | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cp/r-vs-symlink b/tests/cp/r-vs-symlink index 472ee5c78..a06409ff2 100755 --- a/tests/cp/r-vs-symlink +++ b/tests/cp/r-vs-symlink @@ -12,12 +12,12 @@ fi . $srcdir/../envvar-check pwd=`pwd` -tmp=r-vs-slink.$$ -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 echo abc > foo || framework_failure=1 ln -s foo slink || framework_failure=1 |