summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-03-13 17:00:01 -0400
committerBen Gamari <ben@smart-cactus.org>2017-03-13 17:00:01 -0400
commitcf74b677e8a328785a95bd0a7b094daf25e6868a (patch)
tree24cc518ff7f510660c81844553d727c274c34738
parenta3e4f693e231ce85587865e0383e0403cd897a60 (diff)
downloadhaskell-cf74b677e8a328785a95bd0a7b094daf25e6868a.tar.gz
testsuite: Fix use of wc in T13340
As previously documented (88f5add0280788d424c9df5f751a73e73a1a4284) wc's output is inconsistent between Linux and BSDs. Use grep -c instead.
-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 3276723f86..b190dfce84 100644
--- a/testsuite/tests/simplCore/should_compile/Makefile
+++ b/testsuite/tests/simplCore/should_compile/Makefile
@@ -211,4 +211,4 @@ str-rules:
# g should have been collapsed into one defininition by CSE.
.PHONY: T13340
T13340:
- '$(TEST_HC)' $(TEST_HC_OPTS) -c -O T13340.hs -ddump-simpl -dsuppress-all | grep '\+#' | wc -l
+ '$(TEST_HC)' $(TEST_HC_OPTS) -c -O T13340.hs -ddump-simpl -dsuppress-all | grep -c '\+#'