summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/check.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/check.mk b/tests/check.mk
index 9263c67d1..cdb199e32 100644
--- a/tests/check.mk
+++ b/tests/check.mk
@@ -49,7 +49,7 @@ built_programs = \
# variables to test scripts.
TESTS_ENVIRONMENT = \
. $(srcdir)/lang-default; \
- tmp__=$$TMPDIR; test -d $tmp__ || tmp__=.; \
+ tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.; \
. $(srcdir)/envvar-check; \
TMPDIR=$$tmp__; export TMPDIR; \
shell_or_perl_() { \