summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@well-typed.com>2022-01-28 23:11:49 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-01-30 06:27:19 -0500
commit3af95f7a9acc82f61c27a8ac7eba8202dc8c8819 (patch)
tree0597e1cd317c2cd4a82f5ecd2ad7d3476cfe7e42
parentc76c8050a95b6e5828a6684635c10d890afbb114 (diff)
downloadhaskell-3af95f7a9acc82f61c27a8ac7eba8202dc8c8819.tar.gz
testsuite/T4029: Don't depend on echo
On Windows the `cmd.exe` shell may be used to execute the command, which will print `ECHO is on.` instead of a newline if you give it no argument. Avoid this by rather using `printf`.
-rw-r--r--testsuite/tests/perf/space_leaks/T4029.script216
1 files changed, 108 insertions, 108 deletions
diff --git a/testsuite/tests/perf/space_leaks/T4029.script b/testsuite/tests/perf/space_leaks/T4029.script
index f2faa4fd1a..1090b79f53 100644
--- a/testsuite/tests/perf/space_leaks/T4029.script
+++ b/testsuite/tests/perf/space_leaks/T4029.script
@@ -102,203 +102,203 @@
-- Load a minimalist module and reload it 99 times
:load T4029a
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-:! echo >> T4029a.hs
+:! printf "" >> T4029a.hs
:reload
-- Load a more complex module 10 times
@@ -315,21 +315,21 @@
-- Load a more complex module and reload it 9 times
:load T4029b
-:! echo >> T4029b.hs
+:! printf "" >> T4029b.hs
:reload
-:! echo >> T4029b.hs
+:! printf "" >> T4029b.hs
:reload
-:! echo >> T4029b.hs
+:! printf "" >> T4029b.hs
:reload
-:! echo >> T4029b.hs
+:! printf "" >> T4029b.hs
:reload
-:! echo >> T4029b.hs
+:! printf "" >> T4029b.hs
:reload
-:! echo >> T4029b.hs
+:! printf "" >> T4029b.hs
:reload
-:! echo >> T4029b.hs
+:! printf "" >> T4029b.hs
:reload
-:! echo >> T4029b.hs
+:! printf "" >> T4029b.hs
:reload
-:! echo >> T4029b.hs
+:! printf "" >> T4029b.hs
:reload