forked from enlightenment/efl
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:
parent
f35bbc3923
commit
5600b332a4
|
@ -1,5 +1,3 @@
|
||||||
SET(MEMORYCHECK_COMMAND_OPTIONS "--show-reachable=no")
|
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
ENABLE_TESTING()
|
ENABLE_TESTING()
|
||||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
|
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
|
||||||
|
|
|
@ -75,6 +75,8 @@ main(int argc, char **argv)
|
||||||
Suite *s;
|
Suite *s;
|
||||||
SRunner *sr;
|
SRunner *sr;
|
||||||
int i, failed_count;
|
int i, failed_count;
|
||||||
|
eo_init();
|
||||||
|
setenv("CK_FORK", "no", 0);
|
||||||
|
|
||||||
for (i = 1; i < argc; i++)
|
for (i = 1; i < argc; i++)
|
||||||
if ((strcmp(argv[i], "-h") == 0) ||
|
if ((strcmp(argv[i], "-h") == 0) ||
|
||||||
|
@ -99,5 +101,7 @@ main(int argc, char **argv)
|
||||||
failed_count = srunner_ntests_failed(sr);
|
failed_count = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
||||||
|
eo_shutdown();
|
||||||
|
|
||||||
return (failed_count == 0) ? 0 : 255;
|
return (failed_count == 0) ? 0 : 255;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue