sim: mcore: add a fail testcase
This commit is contained in:
parent
02962cd9ea
commit
5809534fe1
@ -1,3 +1,8 @@
|
||||
2015-11-15 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* fail.s: New test.
|
||||
* testutils.inc (fail): Fix exit code.
|
||||
|
||||
2015-03-29 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* pass.s, allinsn.exp, testutils.inc: New files.
|
||||
|
8
sim/testsuite/sim/mcore/fail.s
Normal file
8
sim/testsuite/sim/mcore/fail.s
Normal file
@ -0,0 +1,8 @@
|
||||
# check that the sim doesn't die immediately.
|
||||
# mach: mcore
|
||||
# xerror:
|
||||
|
||||
.include "testutils.inc"
|
||||
|
||||
start
|
||||
fail
|
@ -38,7 +38,7 @@
|
||||
movi r4, 5;
|
||||
# Trigger OS trap.
|
||||
trap 1;
|
||||
exit 0
|
||||
exit 1
|
||||
.data
|
||||
1: .asciz "fail\n"
|
||||
.endm
|
||||
|
Loading…
Reference in New Issue
Block a user