sim: mcore: add a fail testcase

This commit is contained in:
Mike Frysinger 2015-11-15 00:13:29 -08:00
parent 02962cd9ea
commit 5809534fe1
3 changed files with 14 additions and 1 deletions

View File

@ -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.

View File

@ -0,0 +1,8 @@
# check that the sim doesn't die immediately.
# mach: mcore
# xerror:
.include "testutils.inc"
start
fail

View File

@ -38,7 +38,7 @@
movi r4, 5;
# Trigger OS trap.
trap 1;
exit 0
exit 1
.data
1: .asciz "fail\n"
.endm