}
END_TEST
-#if defined(HAVE_FORK)
+#if defined(HAVE_FORK) && HAVE_FORK==1
int testval_up;
int testval_down;
tcase_add_test(tc,test_print_counts);
tcase_add_test(tc,test_setup_failure_msg);
-#if defined(HAVE_FORK)
+#if defined(HAVE_FORK) && HAVE_FORK==1
tcase_add_test(tc,test_ch_setup);
tcase_add_test(tc,test_ch_setup_fail);
tcase_add_test(tc,test_ch_setup_fail_nofork);
START_TEST(test_default_fork)
{
-#if defined(HAVE_FORK)
+#if defined(HAVE_FORK) && HAVE_FORK == 1
ck_assert_msg(srunner_fork_status(fork_dummy_sr) == CK_FORK,
"Default fork status not set correctly");
#else
* attempting to set the fork mode as anything but
* CK_NOFORK is considered an error.
*/
-#if defined(HAVE_FORK)
+#if defined(HAVE_FORK) && HAVE_FORK==1
START_TEST(test_set_fork)
{
srunner_set_fork_status(fork_dummy_sr, CK_FORK);
suite_add_tcase(s, tc);
tcase_add_test(tc,test_default_fork);
tcase_add_test(tc,test_set_nofork);
-#if defined(HAVE_FORK)
+#if defined(HAVE_FORK) && HAVE_FORK==1
tcase_add_test(tc,test_set_fork);
tcase_add_test(tc,test_env);
tcase_add_test(tc,test_env_and_set);
srunner_add_suite(sr, make_fixture_suite());
srunner_add_suite(sr, make_pack_suite());
-#if defined(HAVE_FORK)
+#if defined(HAVE_FORK) && HAVE_FORK==1
srunner_add_suite(sr, make_exit_suite());
#endif
sr = srunner_create (make_log_suite());
srunner_add_suite(sr, make_fork_suite());
-#if defined(HAVE_FORK)
+#if defined(HAVE_FORK) && HAVE_FORK==1
srunner_add_suite(sr, make_exit_suite());
#endif