From: Mike Frysinger Date: Sun, 15 Nov 2015 08:13:29 +0000 (-0800) Subject: sim: mcore: add a fail testcase X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5809534fe153fbbf925424716eb2e295f2217c65;p=binutils-gdb.git sim: mcore: add a fail testcase --- diff --git a/sim/testsuite/sim/mcore/ChangeLog b/sim/testsuite/sim/mcore/ChangeLog index 2aa1f2cd791..b0e79088ae6 100644 --- a/sim/testsuite/sim/mcore/ChangeLog +++ b/sim/testsuite/sim/mcore/ChangeLog @@ -1,3 +1,8 @@ +2015-11-15 Mike Frysinger + + * fail.s: New test. + * testutils.inc (fail): Fix exit code. + 2015-03-29 Mike Frysinger * pass.s, allinsn.exp, testutils.inc: New files. diff --git a/sim/testsuite/sim/mcore/fail.s b/sim/testsuite/sim/mcore/fail.s new file mode 100644 index 00000000000..10e3b23333b --- /dev/null +++ b/sim/testsuite/sim/mcore/fail.s @@ -0,0 +1,8 @@ +# check that the sim doesn't die immediately. +# mach: mcore +# xerror: + +.include "testutils.inc" + + start + fail diff --git a/sim/testsuite/sim/mcore/testutils.inc b/sim/testsuite/sim/mcore/testutils.inc index 0b82942e1ab..f5be06da663 100644 --- a/sim/testsuite/sim/mcore/testutils.inc +++ b/sim/testsuite/sim/mcore/testutils.inc @@ -38,7 +38,7 @@ movi r4, 5; # Trigger OS trap. trap 1; - exit 0 + exit 1 .data 1: .asciz "fail\n" .endm