fix unit tests when exit is called at the end

This commit is contained in:
hexcoder-
2020-06-16 22:37:56 +02:00
parent e05ed58bf8
commit a14f3c90a8
3 changed files with 3 additions and 3 deletions

View File

@ -126,6 +126,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) );
}

View File

@ -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) );
}

View File

@ -109,6 +109,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) );
}