summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-09-08 22:49:15 -0400
committerBen Gamari <ben@smart-cactus.org>2021-10-25 23:49:48 -0400
commita8e8e43cfc0cdbc49e80d089f0345b0fbf859baa (patch)
treec69e05d57f1732145afccaddb8e729e307248f6a
parent5939972710a5799b5a78a18160b1abc75e196caa (diff)
downloadhaskell-a8e8e43cfc0cdbc49e80d089f0345b0fbf859baa.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. (cherry picked from commit dc0945975e7bc446fe3d748535154bfff8158198)
-rw-r--r--testsuite/tests/simplCore/should_compile/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/simplCore/should_compile/Makefile b/testsuite/tests/simplCore/should_compile/Makefile
index 3712fd5477..3285f5df5e 100644
--- a/testsuite/tests/simplCore/should_compile/Makefile
+++ b/testsuite/tests/simplCore/should_compile/Makefile
@@ -265,7 +265,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.