]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Ensure that TMPDIR is valid. Otherwise, it would cause test failures.
authorJim Meyering <jim@meyering.net>
Tue, 28 Aug 2007 22:17:27 +0000 (00:17 +0200)
committerJim Meyering <jim@meyering.net>
Tue, 28 Aug 2007 22:17:27 +0000 (00:17 +0200)
* tests/misc/tty-eof: Set TMPDIR=.
* tests/misc/sort-compress: Likewise.

ChangeLog
tests/misc/sort-compress
tests/misc/tty-eof

index 015bad93151eda640a33cb8c580459bddcd11893..ac46eaf492c8e8914f4da02828c2c9d55dd4194d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-08-29  Jim Meyering  <jim@meyering.net>
 
+       Ensure that TMPDIR is valid.  Otherwise, it would cause test failures.
+       * tests/misc/tty-eof: Set TMPDIR=.
+       * tests/misc/sort-compress: Likewise.
+
        Use EXIT_FAILURE, not EXIT_FAIL, now that EXIT_FAILURE is always 1.
        * src/system.h (EXIT_FAIL): Remove definition.
        * src/chroot.c (main): EXIT_FAIL -> EXIT_FAILURE.
index fe460bb1b3e3134efa50f68d60c950f4dccbb2ec..568bfa76257da2c42dfd64148bb95942ac983c24 100755 (executable)
@@ -38,6 +38,9 @@ if test $framework_failure = 1; then
   (exit 1); exit 1
 fi
 
+# Ensure that $TMPDIR is valid.
+TMPDIR=.; export TMPDIR
+
 fail=0
 
 # This should force the use of temp files compressed with the default gzip
index 7567caa8c9a4b621f9c519ee650e5843340006f7..8cd2921fc47b129f23b690073780de690a91abb9 100755 (executable)
@@ -25,6 +25,9 @@ $PERL -e 1 > /dev/null 2>&1 || {
   exit 77
 }
 
+# Ensure that $TMPDIR is valid.
+TMPDIR=.; export TMPDIR
+
 ARGV_0=$0
 export ARGV_0