From: Jim Meyering Date: Tue, 28 Aug 2007 22:17:27 +0000 (+0200) Subject: Ensure that TMPDIR is valid. Otherwise, it would cause test failures. X-Git-Tag: v6.9.89~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58ddd2c5a1a80b1c3ef6d1717842d082d24409cf;p=thirdparty%2Fcoreutils.git Ensure that TMPDIR is valid. Otherwise, it would cause test failures. * tests/misc/tty-eof: Set TMPDIR=. * tests/misc/sort-compress: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 015bad9315..ac46eaf492 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-08-29 Jim Meyering + 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. diff --git a/tests/misc/sort-compress b/tests/misc/sort-compress index fe460bb1b3..568bfa7625 100755 --- a/tests/misc/sort-compress +++ b/tests/misc/sort-compress @@ -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 diff --git a/tests/misc/tty-eof b/tests/misc/tty-eof index 7567caa8c9..8cd2921fc4 100755 --- a/tests/misc/tty-eof +++ b/tests/misc/tty-eof @@ -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