diff options
author | Jim Meyering <jim@meyering.net> | 2002-04-19 21:53:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-04-19 21:53:01 +0000 |
commit | ebf16be3eac35b90222d49c1a6351aeb1e1493a1 (patch) | |
tree | aa904784c4af5a95945351582c3e29b31752a550 /tests | |
parent | 4061c4957991a42ab962830aac6c7b11f3236357 (diff) | |
download | coreutils-ebf16be3eac35b90222d49c1a6351aeb1e1493a1.tar.xz |
Use tmpdir named $0.tmp/$$. Create with mkdir -p.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sample-test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sample-test b/tests/sample-test index a409bd12c..e528baa84 100644 --- a/tests/sample-test +++ b/tests/sample-test @@ -12,12 +12,12 @@ fi # FIXME: PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check pwd=`pwd` -tmp=`echo "$0"|sed 's,.*/,,'`.tmp -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 if test $framework_failure = 1; then |