Eo: Fix the test suite to run with CK_FORK=no.

Make it possible to do it, and make it default.
And remove the now useless valgrind option (we want to see still
      reachable now that libcheck works).

SVN revision: 71316
This commit is contained in:
Tom Hacohen 2012-05-22 11:13:15 +00:00
parent f35bbc3923
commit 5600b332a4
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,3 @@
SET(MEMORYCHECK_COMMAND_OPTIONS "--show-reachable=no")
include(CTest)
ENABLE_TESTING()
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)

View File

@ -75,6 +75,8 @@ main(int argc, char **argv)
Suite *s;
SRunner *sr;
int i, failed_count;
eo_init();
setenv("CK_FORK", "no", 0);
for (i = 1; i < argc; i++)
if ((strcmp(argv[i], "-h") == 0) ||
@ -99,5 +101,7 @@ main(int argc, char **argv)
failed_count = srunner_ntests_failed(sr);
srunner_free(sr);
eo_shutdown();
return (failed_count == 0) ? 0 : 255;
}