From: Timo Sirainen Date: Thu, 2 Apr 2020 14:45:46 +0000 (+0300) Subject: lib-test: test_exit() - Use regular exit() instead of _exit() X-Git-Tag: 2.3.11.2~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dad6c9e9099be36aa8ff50246136b245ee4958e;p=thirdparty%2Fdovecot%2Fcore.git lib-test: test_exit() - Use regular exit() instead of _exit() Otherwise code coverage output isn't written for the forked process. --- diff --git a/src/lib-test/test-common.c b/src/lib-test/test-common.c index b844c7add8..2cae8714e3 100644 --- a/src/lib-test/test-common.c +++ b/src/lib-test/test-common.c @@ -4,7 +4,6 @@ #include "test-common.h" #include -#include /* _exit() */ #include /* 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); }