summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-12-02 12:27:15 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-12-05 16:07:48 -0500
commit58a9c4295b9f457ca465415b7017f8e343d54339 (patch)
treeb7bf3b6314a4c14986d91db2cd03eaf57d467545
parent69001f54279a55bc4e5e5883c675e5ba6fe49a22 (diff)
downloadhaskell-58a9c4295b9f457ca465415b7017f8e343d54339.tar.gz
testsuite: Disable divByZero on non-NCG targets
The LLVM backend does not guarantee any particular semantics for division by zero, making this test unreliable across platforms.
-rw-r--r--testsuite/tests/rts/all.T4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/rts/all.T b/testsuite/tests/rts/all.T
index 0bbddfba3e..450ee7c762 100644
--- a/testsuite/tests/rts/all.T
+++ b/testsuite/tests/rts/all.T
@@ -46,6 +46,10 @@ test('derefnull',
test('divbyzero',
[# SIGFPE on Linux
exit_code(136),
+ # The LLVM backend in particular does not guarantee any particular
+ # behavior on division-by-zero (#10332).
+ omit_ways(llvm_ways),
+ when(not(have_ncg()), skip),
# Apparently the output can be different on different
# Linux setups, so just ignore it. As long as we get
# the right exit code we're OK.