summaryrefslogtreecommitdiff
path: root/tests/misc/sort-compress
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2010-12-14 10:07:36 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2010-12-14 10:08:04 -0800
commitdcb3f60d0af77ec06d58e4fa18c8ee2b80d10cc6 (patch)
tree1aeddfed97fdf4a6a8830e6bbc93787298321b21 /tests/misc/sort-compress
parent0da4d843003e9d38624e19c24c7fb670f1bb4749 (diff)
downloadcoreutils-dcb3f60d0af77ec06d58e4fa18c8ee2b80d10cc6.tar.xz
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.
Diffstat (limited to 'tests/misc/sort-compress')
-rwxr-xr-xtests/misc/sort-compress3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/misc/sort-compress b/tests/misc/sort-compress
index a51a2df7c..50845c9e2 100755
--- a/tests/misc/sort-compress
+++ b/tests/misc/sort-compress
@@ -22,9 +22,6 @@ print_ver_ sort
seq -w 2000 > exp || framework_failure
tac exp > in || framework_failure
-# Ensure that $TMPDIR is valid.
-TMPDIR=.; export TMPDIR
-
# This should force the use of temp files
sort -S 1k in > out || fail=1
compare exp out || fail=1