summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-12-11 17:39:58 -0500
committerBen Gamari <ben@smart-cactus.org>2018-12-11 18:19:46 -0500
commite98d220601fb12a7ccbdf46474cd2dbb2c3e642e (patch)
treecf556e4fca6f4863a633e4741fa4f234a68a8036 /testsuite
parent003ab6a1288ed504447985a1329409adf4eaa367 (diff)
downloadhaskell-e98d220601fb12a7ccbdf46474cd2dbb2c3e642e.tar.gz
testsuite: Don't use sed -i in T15369
BSD sed doesn't allow use of sed -i on symlinks and the source file is symlinked into place.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/ghci/should_run/T15369.script4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/tests/ghci/should_run/T15369.script b/testsuite/tests/ghci/should_run/T15369.script
index 2ebed015f4..f6f66e060b 100644
--- a/testsuite/tests/ghci/should_run/T15369.script
+++ b/testsuite/tests/ghci/should_run/T15369.script
@@ -8,6 +8,8 @@
:all-types
:l *T15369.hs
:all-types
-:! sed -i -e 's/Int/Double/g' T15369.hs
+-- Note: BSD sed doesn't allow use of -i here due to symlinks
+:! sed -e 's/Int/Double/g' T15369.hs > Temp.hs
+:! mv Temp.hs T15369.hs
:l *T15369.hs
:all-types