testsuite: Fix use of wc in T13340
authorBen Gamari <ben@smart-cactus.org>
Mon, 13 Mar 2017 21:00:01 +0000 (17:00 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 13 Mar 2017 21:00:01 +0000 (17:00 -0400)
As previously documented (88f5add0280788d424c9df5f751a73e73a1a4284) wc's output
is inconsistent between Linux and BSDs. Use grep -c instead.

testsuite/tests/simplCore/should_compile/Makefile

index 3276723..b190dfc 100644 (file)
@@ -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 '\+#'