summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/sort-compress3
-rwxr-xr-xtests/misc/tty-eof3
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc/sort-compress b/tests/misc/sort-compress
index fe460bb1b..568bfa762 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 7567caa8c..8cd2921fc 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