mirror of https://gitee.com/openkylin/qemu.git
tests/tcg/xtensa: indicate failed tests
When test suite with multiple tests fails it's not obvious which test failed. Pring "failed" in every invocation of test_fail. Do printing when DEBUG preprocessor macro is defined. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
eb3f4298c9
commit
0ed040db36
|
@ -49,7 +49,9 @@ main:
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro test name
|
.macro test name
|
||||||
//print test_\name
|
#ifdef DEBUG
|
||||||
|
print test_\name
|
||||||
|
#endif
|
||||||
test_init
|
test_init
|
||||||
test_\name:
|
test_\name:
|
||||||
.global test_\name
|
.global test_\name
|
||||||
|
@ -74,6 +76,9 @@ test_\name:
|
||||||
l32i a2, a2, 0
|
l32i a2, a2, 0
|
||||||
movi a3, 1
|
movi a3, 1
|
||||||
s8i a3, a2, 0
|
s8i a3, a2, 0
|
||||||
|
#ifdef DEBUG
|
||||||
|
print failed
|
||||||
|
#endif
|
||||||
j 99f
|
j 99f
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue