tests: default to /tmp as the temporary directory
commitdcb3f60d0af77ec06d58e4fa18c8ee2b80d10cc6
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Dec 2010 18:07:36 +0000 (14 10:07 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Dec 2010 18:08:04 +0000 (14 10:08 -0800)
tree1aeddfed97fdf4a6a8830e6bbc93787298321b21
parent0da4d843003e9d38624e19c24c7fb670f1bb4749
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/check.mk
tests/misc/sort-compress
tests/misc/sort-compress-proc