]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/run-all
bash-4.4 beta release
[thirdparty/bash.git] / tests / run-all
index d3f3a0e9cc4e81c179b0237bc85724edba08a0ad..2b004b5c325d044d69ea1c4fd9aa63586253c52b 100644 (file)
@@ -1,5 +1,13 @@
 #! /bin/sh
 
+: ${TMPDIR:=/tmp}
+export TMPDIR
+
+BASH_TSTOUT=/tmp/xx    # for now
+export BASH_TSTOUT
+
+trap 'rm -f $BASH_TSTOUT' 0
+
 PATH=.:$PATH   # just to get recho/zecho/printenv if not run via `make tests'
 export PATH
 
@@ -13,7 +21,7 @@ export THIS_SH
 
 ${THIS_SH} ./version
 
-rm -f /tmp/xx
+rm -f ${BASH_TSTOUT}
 
 echo Any output from any test, unless otherwise noted, indicates a possible anomaly