diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-09-08 22:49:15 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-10-12 19:16:40 -0400 |
commit | dc0945975e7bc446fe3d748535154bfff8158198 (patch) | |
tree | dbf5cb6cce2758978556ec272cea603c68dd4b24 | |
parent | 91cfe1213a09c2c24ebbc8d90dcfb16f95e569ca (diff) | |
download | haskell-dc0945975e7bc446fe3d748535154bfff8158198.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. |