summaryrefslogtreecommitdiff
path: root/testsuite/mk/test.mk
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-12-16 15:01:12 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-12-18 05:54:56 -0500
commitc53b38dd5c1e38517a0c686d2aa9f8187629299c (patch)
tree00d89b491a0bfbe8126ac5ed81326352a904eeee /testsuite/mk/test.mk
parent3e9b745253cdf7299a692a95dceac87d6d0ff82f (diff)
downloadhaskell-c53b38dd5c1e38517a0c686d2aa9f8187629299c.tar.gz
testsuite: Fix two shell quoting issues
Fixes two ancient bugs in the testsuite driver makefiles due to insufficient quoting. I have no idea how these went unnoticed for so long. Thanks to @tomjaguarpaw for testing.
Diffstat (limited to 'testsuite/mk/test.mk')
-rw-r--r--testsuite/mk/test.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk
index cc30266829..a7276207f5 100644
--- a/testsuite/mk/test.mk
+++ b/testsuite/mk/test.mk
@@ -100,9 +100,9 @@ RUNTEST_OPTS += -e "config.leading_underscore=False"
endif
GHC_PRIM_LIBDIR := $(subst library-dirs: ,,$(shell "$(GHC_PKG)" field ghc-prim library-dirs --simple-output))
-HAVE_VANILLA := $(shell if [ -f $(subst \,/,$(GHC_PRIM_LIBDIR))/GHC/PrimopWrappers.hi ]; then echo YES; else echo NO; fi)
-HAVE_DYNAMIC := $(shell if [ -f $(subst \,/,$(GHC_PRIM_LIBDIR))/GHC/PrimopWrappers.dyn_hi ]; then echo YES; else echo NO; fi)
-HAVE_PROFILING := $(shell if [ -f $(subst \,/,$(GHC_PRIM_LIBDIR))/GHC/PrimopWrappers.p_hi ]; then echo YES; else echo NO; fi)
+HAVE_VANILLA := $(shell if [ -f "$(subst \,/,$(GHC_PRIM_LIBDIR))/GHC/PrimopWrappers.hi" ]; then echo YES; else echo NO; fi)
+HAVE_DYNAMIC := $(shell if [ -f "$(subst \,/,$(GHC_PRIM_LIBDIR))/GHC/PrimopWrappers.dyn_hi" ]; then echo YES; else echo NO; fi)
+HAVE_PROFILING := $(shell if [ -f "$(subst \,/,$(GHC_PRIM_LIBDIR))/GHC/PrimopWrappers.p_hi" ]; then echo YES; else echo NO; fi)
HAVE_GDB := $(shell if gdb --version > /dev/null 2> /dev/null; then echo YES; else echo NO; fi)
HAVE_READELF := $(shell if readelf --version > /dev/null 2> /dev/null; then echo YES; else echo NO; fi)