From: brarcher Date: Mon, 23 Jun 2014 04:13:16 +0000 (+0000) Subject: Allow checked fixtures when compiled without fork(). X-Git-Tag: 0.10.0~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e024fd99b3a8f50eb614e8b57171cd1df375b36;p=check Allow checked fixtures when compiled without fork(). Previously such setup/teardown functions were disabled, as the full contract for checked fixtures could not be honored. Checked fixtures in CK_NOFORK mode are now closer to the contract, and are now enabled. Besides, it was possible to use checked fixtures if the system had fork() but the tests were configured to run in CK_NOFORK mode. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1155 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/NEWS b/NEWS index 4ebffd6..65ce1c8 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,12 @@ In Development: checked teardown functions that fail in CK_NOFORK mode will not cause the test to fail. +* Allow checked fixtures when compiled without fork(). Previously + such setup/teardown functions were disabled, as the full contract + for checked fixtures could not be honored. Checked fixtures + in CK_NOFORK mode are now closer to the contract, and are now + enabled. + Fri May 30, 2014: Released Check 0.9.13 based on r1137 (2014-05-26 21:03:09 +0000) diff --git a/src/check.c b/src/check.c index 9120e75..caba859 100644 --- a/src/check.c +++ b/src/check.c @@ -212,16 +212,7 @@ void tcase_add_unchecked_fixture(TCase * tc, SFun setup, SFun teardown) void tcase_add_checked_fixture(TCase * tc, SFun setup, SFun teardown) { -#if defined(HAVE_FORK) tcase_add_fixture(tc, setup, teardown, 1); -#else - (void)tc; - (void)setup; - (void)teardown; - eprintf - ("This version does not support checked fixtures, as fork is not supported", - __FILE__, __LINE__); -#endif } static void tcase_add_fixture(TCase * tc, SFun setup, SFun teardown,