From dcb3f60d0af77ec06d58e4fa18c8ee2b80d10cc6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 14 Dec 2010 10:07:36 -0800 Subject: tests: default to /tmp as the temporary directory * tests/check.mk (TESTS_ENVIRONMENT): Default TMPDIR to /tmp, rather than to the working directory; this is more common in practice, which makes the tests more real-worldish; and it is often faster. Also, it avoids some problems with NFS cleanups. * tests/misc/sort-compress: Remove unnecessary code setting TMPDIR. * tests/misc/sort-compress-proc: Likewise. Do the final sleep only if TMPDIR is relative, which should be rarely given the change to TESTS_ENVIRONMENT. --- tests/misc/sort-compress-proc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'tests/misc/sort-compress-proc') diff --git a/tests/misc/sort-compress-proc b/tests/misc/sort-compress-proc index 8d0094f13..30f6b43b1 100755 --- a/tests/misc/sort-compress-proc +++ b/tests/misc/sort-compress-proc @@ -20,13 +20,6 @@ print_ver_ sort expensive_ -# Ensure that $TMPDIR is valid. -if test -d /tmp && test -w /tmp -then TMPDIR=/tmp -else TMPDIR=. -fi -export TMPDIR - seq -w 2000 > exp || fail=1 tac exp > in || fail=1 insize=$(stat -c %s -