summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-01-24 09:47:54 -0500
committerBen Gamari <ben@smart-cactus.org>2020-02-14 10:16:36 -0500
commite5ee07ab565c1bf7a33d3bd4bcd3fb6c7b100d1c (patch)
tree4e53a6c8789b1e04598fe00d06fcaa026e15ee57
parent6e8371442dc6130a03e648a0e1bc0f1bdfdbfe91 (diff)
downloadhaskell-e5ee07ab565c1bf7a33d3bd4bcd3fb6c7b100d1c.tar.gz
testsuite: Don't ask sed to operate in-place on symlinks
Some sed implementations (e.g. FreeBSD) refuse to operate in-place on symlinks.
-rw-r--r--testsuite/tests/driver/T16608/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T16608/Makefile b/testsuite/tests/driver/T16608/Makefile
index 7cec19026b..1c7ccf5282 100644
--- a/testsuite/tests/driver/T16608/Makefile
+++ b/testsuite/tests/driver/T16608/Makefile
@@ -3,6 +3,8 @@ include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
T16608_1:
+ # FreeBSD's sed doesn't like operating in-place on symlinks. Un-symlinkify.
+ mv MyInteger.hs tmp.hs; cp tmp.hs MyInteger.hs
'$(TEST_HC)' $(TEST_HC_OPTS) --make -O0 T16608_1.hs
./T16608_1
sleep 1
@@ -11,6 +13,8 @@ T16608_1:
./T16608_1
T16608_2:
+ # FreeBSD's sed doesn't like operating in-place on symlinks. Un-symlinkify.
+ mv MyInteger.hs tmp.hs; cp tmp.hs MyInteger.hs
'$(TEST_HC)' $(TEST_HC_OPTS) --make -O0 T16608_2.hs
./T16608_2
sleep 1