summaryrefslogtreecommitdiff
path: root/tests/test-progs
diff options
context:
space:
mode:
authorJason Lowe-Power <jason@lowepower.com>2017-09-21 19:56:57 -0500
committerJason Lowe-Power <jason@lowepower.com>2018-08-17 16:37:42 +0000
commite726ced4087e9b1bffad9e1da24a6cb7e0d8337f (patch)
treed89370dff1c292d34fc673b2cedd98924d688177 /tests/test-progs
parent034315d0c87da9e5a35e00d6debaf4a0adeacf3f (diff)
downloadgem5-e726ced4087e9b1bffad9e1da24a6cb7e0d8337f.tar.xz
tests: Fix hello.c test program
Update the hello test to have a sane return code. Change-Id: I9576b71ee995d8aa410c4ed19d44cc4e9fad10ee Signed-off-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-on: https://gem5-review.googlesource.com/4881 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'tests/test-progs')
-rw-r--r--tests/test-progs/hello/src/hello.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-progs/hello/src/hello.c b/tests/test-progs/hello/src/hello.c
index be6ec83c3..4488f4e5f 100644
--- a/tests/test-progs/hello/src/hello.c
+++ b/tests/test-progs/hello/src/hello.c
@@ -30,8 +30,9 @@
#include <stdio.h>
-int main()
+int main(int argc, char* argv[])
{
printf("Hello world!\n");
+ return 0;
}