[commit: ghc] master: testsuite: Don't use sed -i in T15369 (e98d220)
git at git.haskell.org
git at git.haskell.org
Tue Dec 11 23:22:20 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/e98d220601fb12a7ccbdf46474cd2dbb2c3e642e/ghc
>---------------------------------------------------------------
commit e98d220601fb12a7ccbdf46474cd2dbb2c3e642e
Author: Ben Gamari <ben at smart-cactus.org>
Date: Tue Dec 11 17:39:58 2018 -0500
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.
>---------------------------------------------------------------
e98d220601fb12a7ccbdf46474cd2dbb2c3e642e
testsuite/tests/ghci/should_run/T15369.script | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/testsuite/tests/ghci/should_run/T15369.script b/testsuite/tests/ghci/should_run/T15369.script
index 2ebed01..f6f66e0 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
More information about the ghc-commits
mailing list