Commit 58a9c429 authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot

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.
parent 69001f54
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment