]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-test: test_exit() - Use regular exit() instead of _exit()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 2 Apr 2020 14:45:46 +0000 (17:45 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 8 Apr 2020 07:57:42 +0000 (07:57 +0000)
Otherwise code coverage output isn't written for the forked process.

src/lib-test/test-common.c

index b844c7add82d8cf36a35cce0feaf1ecdef4d33d9..2cae8714e37a54763b5b6b4a07331246f7aac0af 100644 (file)
@@ -4,7 +4,6 @@
 #include "test-common.h"
 
 #include <stdio.h>
-#include <unistd.h> /* _exit() */
 #include <setjmp.h> /* for fatal tests */
 
 static bool test_deinit_lib;
@@ -386,5 +385,5 @@ test_exit(int status)
        i_free_and_null(test_prefix);
        t_pop_last_unsafe(); /* as we were within a T_BEGIN { tests[i].func(); } T_END */
        lib_deinit();
-       _exit(status);
+       exit(status);
 }