This test is run 3 times, and each run attempts to change some global
memory. If using fork, each test has the same global memory. However,
without fork subsequent tests observe the changed global memory from
previous tests. Disabling all but the first run if there is no fork(),
and the test is invalid without fork.
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@769
64e312b2-a51f-0410-8e61-
82d0ca0eb02a
preservation of fixture values across tests, regardless
of the order in which tests are added to the test case */
tcase_add_test (tc_fixture, test_setup);
+#ifdef HAVE_FORK
+ /* The remaining test runs only work if fork() is available. */
tcase_add_test (tc_fixture, test_setup);
tcase_add_test (tc_fixture, test_setup);
+#endif /* HAVE_FORK */
suite_add_tcase (s, tc_fixture);
tc_post_teardown = tcase_create ("Fixture Teardown Tests");
tcase_add_test (tc_post_teardown, test_teardown);