From: brarcher Date: Thu, 26 Sep 2013 02:31:47 +0000 (+0000) Subject: disable exit tests if fork is unavailable X-Git-Tag: 0.10.0~417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6b294a7d8485b5e222d121b71f2561e9f39e2d0;p=check disable exit tests if fork is unavailable all of these tests expect that calling exit() during a test is OK. Without fork, these tests just result in killing the unit test program early. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@797 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/tests/check_check_main.c b/tests/check_check_main.c index 7e858fc..70643b3 100644 --- a/tests/check_check_main.c +++ b/tests/check_check_main.c @@ -23,7 +23,11 @@ int main (void) srunner_add_suite(sr, make_fork_suite()); srunner_add_suite(sr, make_fixture_suite()); srunner_add_suite(sr, make_pack_suite()); + +#if defined(HAVE_FORK) srunner_add_suite(sr, make_exit_suite()); +#endif + srunner_add_suite(sr, make_selective_suite()); printf ("Ran %d tests in subordinate suite\n", sub_ntests);