summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-12-02 12:27:15 -0500
committerBen Gamari <ben@smart-cactus.org>2019-12-02 12:34:22 -0500
commitc12d8e78fbc07ff8aa970fe27cb892081c477a7d (patch)
tree584bb4615ecb18e56f447812a80fec7c015b4ec0
parent3a96a0b6db6a32457ae2f91bb711c2481c767656 (diff)
downloadhaskell-wip/disable-divbyzero.tar.gz
testsuite: Disable divByZero on non-NCG targetswip/disable-divbyzero
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.