]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
test that exit() instead of return-from-main works
authorAntti Kantee <pooka@iki.fi>
Wed, 6 May 2015 22:20:49 +0000 (22:20 +0000)
committerAntti Kantee <pooka@iki.fi>
Wed, 6 May 2015 22:20:49 +0000 (22:20 +0000)
tests/hello/hello.c

index ac3666c643720d868f32efb37daf3d3555422437..8aa7eb3acf38c553c0541924e21460a0e2f88d16 100644 (file)
@@ -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);
 }