From dfc98c47d9a1e53bc310bd9a5cde9a4242ab9f1d Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Wed, 8 Sep 2021 22:49:15 -0400 Subject: 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. --- testsuite/tests/simplCore/should_compile/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.1