[commit: ghc] master: testsuite: Fix use of wc in T13340 (cf74b67)

git at git.haskell.org git at git.haskell.org
Mon Mar 13 21:06:54 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/cf74b677e8a328785a95bd0a7b094daf25e6868a/ghc

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

commit cf74b677e8a328785a95bd0a7b094daf25e6868a
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.


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

cf74b677e8a328785a95bd0a7b094daf25e6868a
 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