aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/mips/hello-mips.c
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2018-12-21 11:52:05 +0000
committerAlex Bennée <alex.bennee@linaro.org>2019-03-12 17:05:21 +0000
commitb4f396151ba736078e12c01a079ba53ad02f0e26 (patch)
tree23c6ddb86dae26af1dc3ded121e77904700268c4 /tests/tcg/mips/hello-mips.c
parentd0ce6257c660d202aff160eedbc359e1e8653a30 (diff)
downloadqemu-b4f396151ba736078e12c01a079ba53ad02f0e26.zip
qemu-b4f396151ba736078e12c01a079ba53ad02f0e26.tar.gz
qemu-b4f396151ba736078e12c01a079ba53ad02f0e26.tar.bz2
tests/tcg/mips: fix hello-mips compilation
The compilation flags for proper building are in the source tree. We also fix exit to 0 so the result is counted as a success. Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg/mips/hello-mips.c')
-rw-r--r--tests/tcg/mips/hello-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcg/mips/hello-mips.c b/tests/tcg/mips/hello-mips.c
index c7052fd..4e1cf50 100644
--- a/tests/tcg/mips/hello-mips.c
+++ b/tests/tcg/mips/hello-mips.c
@@ -60,5 +60,5 @@ static inline int write(int fd, const char *buf, int len)
void __start(void)
{
write (1, "Hello, World!\n", 14);
- exit1 (42);
+ exit1(0);
}