summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-04-06 09:12:25 -0400
committerBen Gamari <ben@smart-cactus.org>2022-04-07 09:43:21 -0400
commit633280d7c192d12bf20cb00988f299a2787c8128 (patch)
tree80445a9d85c5266290fe55a66e727dab9dbf43cd
parent8162b4f329a15b011e2dff055548cb00bdb5c7a0 (diff)
downloadhaskell-633280d7c192d12bf20cb00988f299a2787c8128.tar.gz
testsuite: Fix exit code of bounds checking tests on Windows
`abort` exits with 255, not 134, on Windows.
-rw-r--r--testsuite/tests/codeGen/should_fail/all.T2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/codeGen/should_fail/all.T b/testsuite/tests/codeGen/should_fail/all.T
index e23fa03f82..3f2dacee46 100644
--- a/testsuite/tests/codeGen/should_fail/all.T
+++ b/testsuite/tests/codeGen/should_fail/all.T
@@ -7,7 +7,7 @@ test('T8131', [cmm_src, only_ways(llvm_ways)], compile_fail, ['-no-hs-main'])
def check_bounds_test(name):
""" A -fcheck-prim-bounds test that is expected to fail. """
test(name,
- [ignore_stderr, exit_code(3 if opsys('mingw32') else 134)],
+ [ignore_stderr, exit_code(127 if opsys('mingw32') else 134)],
compile_and_run, ['-fcheck-prim-bounds'])
check_bounds_test('CheckBoundsWriteArray')