{ "Signal Tests", CK_ERROR, signal_8_str },
{ "Signal Tests", CK_ERROR, signal_8_str },
-#if TIMEOUT_TESTS_ENABLED
+#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
{ "Environment Integer Timeout Tests", CK_ERROR, "Test timeout expired" },
{ "Environment Integer Timeout Tests", CK_PASS, "Passed" },
{ "User Double Timeout Scaling Tests", CK_ERROR, "Test timeout expired" },
{ "User Double Timeout Scaling Tests", CK_ERROR, "Test timeout expired" },
#endif /* HAVE_WORKING_SETENV */
-#endif /* TIMEOUT_TESTS_ENABLED */
+#endif /* TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK) */
{ "Limit Tests", CK_ERROR, "Early exit with return value 1" },
{ "Limit Tests", CK_FAILURE, "Completed properly" },
}
END_TEST
-#if TIMEOUT_TESTS_ENABLED
+#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
START_TEST(test_eternal)
#define LINENO_eternal _STR(__LINE__)
{
sleep(14);
}
END_TEST
-#endif
+#endif /* TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK) */
START_TEST(test_early_exit)
{
"-1",
"-1",
-#if TIMEOUT_TESTS_ENABLED
+#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
/* Environment Integer Timeout Tests */
LINENO_eternal,
LINENO_sleep9,
LINENO_sleep14,
#endif /* HAVE_WORKING_SETENV */
-#endif /* TIMEOUT_TESTS_ENABLED */
+#endif /* TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK) */
/* Limit Tests */
"-1",
TCase *tc_simple;
TCase *tc_signal;
-#if TIMEOUT_TESTS_ENABLED
+#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
TCase *tc_timeout_env_int;
TCase *tc_timeout_env_double;
TCase *tc_timeout_scale_double;
TCase *tc_timeout_usr_scale_double;
#endif /* HAVE_WORKING_SETENV */
-#endif /* TIMEOUT_TESTS_ENABLED */
+#endif /* TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK) */
TCase *tc_limit;
TCase *tc_messaging_and_fork;
tc_simple = tcase_create("Simple Tests");
tc_signal = tcase_create("Signal Tests");
-#if TIMEOUT_TESTS_ENABLED
+#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
setenv("CK_DEFAULT_TIMEOUT", "6", 1);
tc_timeout_env_int = tcase_create("Environment Integer Timeout Tests");
unsetenv("CK_DEFAULT_TIMEOUT");
unsetenv("CK_TIMEOUT_MULTIPLIER");
#endif /* HAVE_WORKING_SETENV */
-#endif /* TIMEOUT_TESTS_ENABLED */
+#endif /* TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK) */
tc_limit = tcase_create("Limit Tests");
tc_messaging_and_fork = tcase_create("Msg and fork Tests");
suite_add_tcase (s, tc_simple);
suite_add_tcase (s, tc_signal);
-#if TIMEOUT_TESTS_ENABLED
+#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
suite_add_tcase (s, tc_timeout_env_int);
suite_add_tcase (s, tc_timeout_env_double);
suite_add_tcase (s, tc_timeout_usr_scale_int);
suite_add_tcase (s, tc_timeout_usr_scale_double);
#endif /* HAVE_WORKING_SETENV */
-#endif /* TIMEOUT_TESTS_ENABLED */
+#endif /* TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK) */
suite_add_tcase (s, tc_limit);
suite_add_tcase (s, tc_messaging_and_fork);
tcase_add_test (tc_signal, test_fpe);
tcase_add_test (tc_signal, test_mark_point);
-#if TIMEOUT_TESTS_ENABLED
+#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
tcase_add_test (tc_timeout_env_int, test_eternal);
tcase_add_test (tc_timeout_env_int, test_sleep2);
tcase_add_test (tc_timeout_usr_scale_double, test_sleep9);
tcase_add_test (tc_timeout_usr_scale_double, test_sleep14);
#endif /* HAVE_WORKING_SETENV */
-#endif /* TIMEOUT_TESTS_ENABLED */
+#endif /* TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK) */
tcase_add_test (tc_limit, test_early_exit);
tcase_add_test (tc_limit, test_null);