diff options
-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 |