diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-12-27 12:08:24 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-12-27 12:44:25 -0500 |
commit | 88f5add0280788d424c9df5f751a73e73a1a4284 (patch) | |
tree | 9c0718117437d3cb2c1cdef5b0cfab39fd8ed0c4 | |
parent | d2788ab551fb9dc17f3d4d67ef843a5f3b56f9c6 (diff) | |
download | haskell-88f5add0280788d424c9df5f751a73e73a1a4284.tar.gz |
testsuite: Fix T13025
It relied on `wc`, which produces slightly different format on OS X and Linux.
Instead use `grep -c` which appears to be supported on both platforms and
produces consistent output.
-rw-r--r-- | testsuite/tests/simplCore/should_compile/Makefile | 2 | ||||
-rw-r--r-- | testsuite/tests/simplCore/should_compile/T13025.stdout | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/simplCore/should_compile/Makefile b/testsuite/tests/simplCore/should_compile/Makefile index 2efb8bd2c3..7d5d5b9edc 100644 --- a/testsuite/tests/simplCore/should_compile/Makefile +++ b/testsuite/tests/simplCore/should_compile/Makefile @@ -174,5 +174,5 @@ T12877: T13025: $(RM) -f T13025.o T13025.hi T13025a.o T13025a.hi '$(TEST_HC)' $(TEST_HC_OPTS) -c -O T13025a.hs - '$(TEST_HC)' $(TEST_HC_OPTS) -c -O T13025.hs -ddump-simpl | grep HEq_sc | wc + -'$(TEST_HC)' $(TEST_HC_OPTS) -c -O T13025.hs -ddump-simpl | grep -c HEq_sc # No lines should match 'HEq_sc' so wc should output zeros diff --git a/testsuite/tests/simplCore/should_compile/T13025.stdout b/testsuite/tests/simplCore/should_compile/T13025.stdout index 7d1413f1c1..573541ac97 100644 --- a/testsuite/tests/simplCore/should_compile/T13025.stdout +++ b/testsuite/tests/simplCore/should_compile/T13025.stdout @@ -1 +1 @@ - 0 0 0 +0 |