From: Antti Kantee Date: Wed, 6 May 2015 22:20:49 +0000 (+0000) Subject: test that exit() instead of return-from-main works X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=cafe07df003fc89d6b75184222a7d61823daf1ce;p=people%2Fliuw%2Frumprun.git test that exit() instead of return-from-main works --- diff --git a/tests/hello/hello.c b/tests/hello/hello.c index ac3666c..8aa7eb3 100644 --- a/tests/hello/hello.c +++ b/tests/hello/hello.c @@ -30,5 +30,6 @@ rumprun_test(int argc, char *argv[]) now = time(NULL); printf("Goodbye, world, precisely at:\n%s", ctime(&now)); - return 0; + /* test that exit() works */ + exit(0); }