From a14f3c90a81e01f80623bc3642ab98ab9e488ecb Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Tue, 16 Jun 2020 22:37:56 +0200 Subject: fix unit tests when exit is called at the end --- test/unittests/unit_maybe_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unittests/unit_maybe_alloc.c') diff --git a/test/unittests/unit_maybe_alloc.c b/test/unittests/unit_maybe_alloc.c index 4e093cfe..d9b3a0d4 100644 --- a/test/unittests/unit_maybe_alloc.c +++ b/test/unittests/unit_maybe_alloc.c @@ -156,6 +156,6 @@ int main(int argc, char **argv) { }; //return cmocka_run_group_tests (tests, setup, teardown); - return cmocka_run_group_tests (tests, NULL, NULL); + __real_exit( cmocka_run_group_tests (tests, NULL, NULL) ); } -- cgit 1.4.1