[commit: ghc] ghc-7.10: Fix T2507 expected output (4fd6221)
git at git.haskell.org
git at git.haskell.org
Fri Jul 10 09:37:43 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.10
Link : http://ghc.haskell.org/trac/ghc/changeset/4fd62218b0c2191ab3c65c54ec8201c8ebd78605/ghc
>---------------------------------------------------------------
commit 4fd62218b0c2191ab3c65c54ec8201c8ebd78605
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Thu Jul 9 09:39:30 2015 -0400
Fix T2507 expected output
This seems to have been changed in
07282c7222d718e6d3df8d8f843d95d534dd7062 to include Unicode quotes
despite the fact that we explicitly set LC_ALL=C in the Makefile to
request standard ASCII output.
>---------------------------------------------------------------
4fd62218b0c2191ab3c65c54ec8201c8ebd78605
testsuite/tests/driver/Makefile | 4 ++++
testsuite/tests/driver/T2507.stderr | 4 ++--
testsuite/tests/driver/all.T | 8 +++++++-
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/testsuite/tests/driver/Makefile b/testsuite/tests/driver/Makefile
index 4670958..4418ba4 100644
--- a/testsuite/tests/driver/Makefile
+++ b/testsuite/tests/driver/Makefile
@@ -550,6 +550,10 @@ T7130:
T7563:
-"$(TEST_HC)" $(TEST_HC_OPTS_NO_RECOMP) -C T7563.hs
+# Below we set LC_ALL=C to request standard ASCII output in the resulting error
+# messagse. Unfortunately, Mac OS X still uses a Unicode encoding even with
+# LC_ALL=C, so we expect these tests to fail there.
+
.PHONY: T6037
T6037:
-LC_ALL=C "$(TEST_HC)" $(TEST_HC_OPTS_NO_RECOMP) -c T6037.hs
diff --git a/testsuite/tests/driver/T2507.stderr b/testsuite/tests/driver/T2507.stderr
index e4365a3..925a870 100644
--- a/testsuite/tests/driver/T2507.stderr
+++ b/testsuite/tests/driver/T2507.stderr
@@ -1,5 +1,5 @@
T2507.hs:5:7:
- Couldn't match expected type ‘Int’ with actual type ‘()’
+ Couldn't match expected type `Int' with actual type `()'
In the expression: ()
- In an equation for ‘foo’: foo = ()
+ In an equation for `foo': foo = ()
diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T
index f236f6b..a260a17 100644
--- a/testsuite/tests/driver/all.T
+++ b/testsuite/tests/driver/all.T
@@ -384,8 +384,14 @@ test('T7060',
test('T7130', normal, compile_fail, ['-fflul-laziness'])
test('T7563', when(unregisterised(), skip), run_command,
['$MAKE -s --no-print-directory T7563'])
-test('T6037', expect_broken(6037), run_command,
+
+test('T6037',
+ # The testsuite doesn't know how to set a non-Unicode locale on Windows or Mac OS X
+ [when(opsys('mingw32'), expect_fail), when(opsys('darwin'), expect_fail),
+ expect_broken(6037)],
+ run_command,
['$MAKE -s --no-print-directory T6037'])
+
test('T2507',
# The testsuite doesn't know how to set a non-Unicode locale on Windows or Mac OS X
[when(opsys('mingw32'), expect_fail), when(opsys('darwin'), expect_fail)],
More information about the ghc-commits
mailing list