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
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)
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,