From: brarcher Date: Sun, 22 Sep 2013 17:22:50 +0000 (+0000) Subject: Run fork tests if fork() is defined on system X-Git-Tag: 0.10.0~450 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a693082034eeb6c49323b6ab5f7f94cf6e67c6d;p=check Run fork tests if fork() is defined on system git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@764 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/tests/check_check_master.c b/tests/check_check_master.c index 22103da..ff5240a 100644 --- a/tests/check_check_master.c +++ b/tests/check_check_master.c @@ -192,12 +192,14 @@ static master_test_t master_tests[] = { { "Limit Tests", CK_FAILURE, "Completed properly" }, { "Limit Tests", CK_FAILURE, "Completed properly" }, +#ifdef HAVE_FORK { "Msg and fork Tests", CK_PASS, "Passed" }, { "Msg and fork Tests", CK_FAILURE, "Expected fail" }, { "Msg and fork Tests", CK_PASS, "Passed" }, { "Msg and fork Tests", CK_FAILURE, "Expected fail" }, { "Msg and fork Tests", CK_PASS, "Passed" }, { "Msg and fork Tests", CK_FAILURE, "Expected fail" }, +#endif { "Core", CK_PASS, "Passed" }, { "Core", CK_FAILURE, "We failed" } diff --git a/tests/check_check_sub.c b/tests/check_check_sub.c index 759231d..1a6ea9c 100644 --- a/tests/check_check_sub.c +++ b/tests/check_check_sub.c @@ -836,6 +836,7 @@ void init_master_tests_lineno(int num_master_tests) { "-1", "-1", +#ifdef HAVE_FORK /* Msg and fork Tests */ "-1", "-1", @@ -843,6 +844,7 @@ void init_master_tests_lineno(int num_master_tests) { "-1", "-1", "-1", +#endif /* HAVE_FORK */ /* Core */ "-1",