Commit 0a19231d authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Document and fix expected failure code for derefnull and divbyzero

parent d00ef04e
......@@ -8,10 +8,17 @@ test('testblockalloc', compose(c_src,
# only GHCi triggers the bug, but we run the test all ways for completeness.
test('bug1010', normal, compile_and_run, ['+RTS -c -RTS'])
test('derefnull',
# SIGSEGV on Linux
compose(exit_code(139),
# SIGBUS on OX X
exit_code_if_platform(138, 'i386-apple-darwin')),
exit_code_if_platform(138, 'powerpc-apple-darwin')),
# 5 on Windows - XXX why is that?
exit_code_if_platform(5, 'i386-unknown-mingw32')),
compile_and_run, [''])
test('divbyzero',
# SIGFPE on Linux
compose(exit_code(136),
# 5 on Windows - XXX why is that?
exit_code_if_platform(5, 'i386-unknown-mingw32')),
compile_and_run, [''])
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