[commit: ghc] ghc-8.2: testsuite: Fix use of wc in T13340 (000feba)

git at git.haskell.org git at git.haskell.org
Sat Apr 1 02:21:00 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.2
Link       : http://ghc.haskell.org/trac/ghc/changeset/000febac91bb5dada2414bcab04c05a7342ca1a4/ghc

>---------------------------------------------------------------

commit 000febac91bb5dada2414bcab04c05a7342ca1a4
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Mar 13 17:00:01 2017 -0400

    testsuite: Fix use of wc in T13340
    
    As previously documented (88f5add0280788d424c9df5f751a73e73a1a4284) wc's output
    is inconsistent between Linux and BSDs. Use grep -c instead.
    
    (cherry picked from commit cf74b677e8a328785a95bd0a7b094daf25e6868a)


>---------------------------------------------------------------

000febac91bb5dada2414bcab04c05a7342ca1a4
 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 3276723..b190dfc 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 '\+#'



More information about the ghc-commits mailing list