From 0132f36cfe57ca9c9db0284574b2312b520850a6 Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Mon, 8 Apr 2019 18:39:13 -0700 Subject: Return status via exit --- test-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-lib.c b/test-lib.c index d9a3177..550ea53 100644 --- a/test-lib.c +++ b/test-lib.c @@ -19,7 +19,7 @@ int syncTest(char *testName, char *errMsg, syncTestHandler_t callback) { printf("Running %s...\n", testName); pid = fork(); if(pid == 0) { - return callback(); + exit(callback()); } else { waitpid(pid, &status, 0); -- cgit v1.2.3