projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f79f8d
)
don't fiddle with TMPDIR
author
Jim Meyering
<jim@meyering.net>
Fri, 19 Apr 2002 19:51:29 +0000
(19:51 +0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 19 Apr 2002 19:51:29 +0000
(19:51 +0000)
tests/rm/r-1
patch
|
blob
|
history
diff --git
a/tests/rm/r-1
b/tests/rm/r-1
index 7c21557db879a30aaf723ace4def6afa1120ea31..53fce735f8bf6d4dca822319f88c49fb807d52d9 100755
(executable)
--- a/
tests/rm/r-1
+++ b/
tests/rm/r-1
@@
-2,19
+2,18
@@
test=r-1
-# TMPDIR should be an absolute dir for this test.
-# FIXME: enforce it
-: ${TMPDIR=/tmp}
-
if test "$VERBOSE" = yes; then
set -x
rm --version
fi
pwd=`pwd`
-tmp=$TMPDIR/t-rm.$$
+
+# $tmp should be an absolute dir for this test.
+tmp=$pwd/`echo "$0"|sed 's,.*/,,'`.tmp
+
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
-trap '
exit $?
' 1 2 13 15
+trap '
(exit $?); exit
' 1 2 13 15
framework_failure=0