about summary refs log tree commit diff
path: root/setjmp/tst-setjmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'setjmp/tst-setjmp.c')
-rw-r--r--setjmp/tst-setjmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/setjmp/tst-setjmp.c b/setjmp/tst-setjmp.c
index 90dac0585c..c1efca5410 100644
--- a/setjmp/tst-setjmp.c
+++ b/setjmp/tst-setjmp.c
@@ -113,5 +113,6 @@ main (void)
     puts ("Test FAILED!");
   else
     puts ("Test succeeded!");
-  exit (lose ? EXIT_FAILURE : EXIT_SUCCESS);
+
+  return lose ? EXIT_FAILURE : EXIT_SUCCESS;
 }