diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-09-08 22:49:15 -0400 |
---|---|---|
committer | Ben Gamari <ben@well-typed.com> | 2021-10-06 08:47:38 +0000 |
commit | dfc98c47d9a1e53bc310bd9a5cde9a4242ab9f1d (patch) | |
tree | fead27585e2e1b8ab328a2277223adb0752b3e0f | |
parent | bad2e95692f2229bf678b42aa747edf5802048dc (diff) | |
download | haskell-dfc98c47d9a1e53bc310bd9a5cde9a4242ab9f1d.tar.gz |
testsuite: Make T12600 more robust
Previously we would depend upon `grep ... | head -n1`. In principle this
should work, but on Alpine Linux `grep` complains when its stdout stream
has been closed.
-rw-r--r-- | testsuite/tests/simplCore/should_compile/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/simplCore/should_compile/Makefile b/testsuite/tests/simplCore/should_compile/Makefile index 08d1798fa8..9d721e44e9 100644 --- a/testsuite/tests/simplCore/should_compile/Makefile +++ b/testsuite/tests/simplCore/should_compile/Makefile @@ -271,7 +271,7 @@ T11272: # We expect to see a $wfoo worker that doesn't take any dictionaries. .PHONY: T12600 T12600: - '$(TEST_HC)' $(TEST_HC_OPTS) -c -O -ddump-prep -dsuppress-all -dsuppress-uniques -dno-suppress-type-signatures -dppr-cols=200 T12600.hs | grep "wfoo" | head -n 1 + '$(TEST_HC)' $(TEST_HC_OPTS) -c -O -ddump-prep -dsuppress-all -dsuppress-uniques -dno-suppress-type-signatures -dppr-cols=200 T12600.hs | grep "wfoo *::" # We don't expect to case match on any literal numbers other than # 0 or 1. See T14140.hs for an explanation. |