summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-03-04 11:15:36 +0800
committerZubin Duggal <zubin.duggal@gmail.com>2021-09-21 11:29:33 +0530
commit52765fe46975f9b20e84ef3af4db01c01ad697ff (patch)
tree9d64f75ec1aeaa81f2a86a27e104c8c32ae1b57e
parenta3b8fec81184ff11228a2dc9517d4bc82895a2ee (diff)
downloadhaskell-52765fe46975f9b20e84ef3af4db01c01ad697ff.tar.gz
[testsuite/json2] Fix failure with LLVM backends
-Wno-unsupported-llvm-version should suppress the LLVM version missmatch warning that messes up the output. (cherry picked from commit 63455300625fc12b2aafc3e339eb307510a6e8bd) (cherry picked from commit 65440597fe5dae97374bd0a52003ed5c7a9ac87d)
-rw-r--r--testsuite/tests/driver/all.T8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T
index d39614ee7d..7218445364 100644
--- a/testsuite/tests/driver/all.T
+++ b/testsuite/tests/driver/all.T
@@ -260,8 +260,12 @@ test('T12955', normal, makefile_test, [])
test('T12971', [when(opsys('mingw32'), expect_broken(17945)), ignore_stdout], makefile_test, [])
test('json', normal, compile_fail, ['-ddump-json'])
-test('json2', normalise_version('base','ghc-prim'), compile, ['-ddump-types -ddump-json'])
-test('T16167', exit_code(1), run_command,
+
+# json2 test is sensitive to the LLVM not supported ouput from GHC. ANd the error
+# won't tell. It looks unrelated and is annoying to debug. Hence we disable the
+# warning to prevent spurious errors.
+test('json2', normalise_version('base','ghc-prim'), compile, ['-ddump-types -ddump-json -Wno-unsupported-llvm-version'])
+test('T16167', exit_code(1), run_command,
['{compiler} -x hs -e ":set prog T16167.hs" -ddump-json T16167.hs'])
test('T13604', [], makefile_test, [])
test('T13604a', [], makefile_test, [])