summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-09-17 20:34:26 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-09-23 16:00:18 -0400
commita940ba7f5004d1ce8941a98341fda0cac4d11bfb (patch)
tree358d0a7914be9465a02d9a1e59f3348ef20ad47f
parentb30f90c4d9f72a05ef31878217e019338316d281 (diff)
downloadhaskell-a940ba7f5004d1ce8941a98341fda0cac4d11bfb.tar.gz
testsuite: Fix gnu sed-ism
The BSD sed implementation doesn't allow `sed -i COMMAND FILE`; one must rather use `sed -i -e COMMAND FILE`.
-rw-r--r--testsuite/tests/backpack/reexport/Makefile2
-rw-r--r--testsuite/tests/driver/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/backpack/reexport/Makefile b/testsuite/tests/backpack/reexport/Makefile
index eca0a161dd..d29130fc83 100644
--- a/testsuite/tests/backpack/reexport/Makefile
+++ b/testsuite/tests/backpack/reexport/Makefile
@@ -5,7 +5,7 @@ include $(TOP)/mk/test.mk
# Testing recompilation for backpack
bkpreex03:
"$(TEST_HC)" $(TEST_HC_OPTS) -v1 --backpack bkpreex03.bkp -fhide-source-paths
- sed -i 's/import M1/import M2/' bkpreex03.bkp
+ sed -i -e 's/import M1/import M2/' bkpreex03.bkp
"$(TEST_HC)" $(TEST_HC_OPTS) -v1 --backpack bkpreex03.bkp -fhide-source-paths
bkpreex04:
diff --git a/testsuite/tests/driver/Makefile b/testsuite/tests/driver/Makefile
index f58fdbee4f..58d35b5a06 100644
--- a/testsuite/tests/driver/Makefile
+++ b/testsuite/tests/driver/Makefile
@@ -715,7 +715,7 @@ T14923:
"$(TEST_HC)" $(TEST_HC_OPTS) -c Foo.hs;
- sed -i 's/^{-\#/--&/' Foo.hs # comment out the pragma
+ sed -i -e 's/^{-\#/--&/' Foo.hs # comment out the pragma
# Check sed actually worked
cat Foo.hs