{ "Simple Tests", CK_FAILURE, "Assertion 'x==y' failed: x==0x1, y==0x2" },
{ "Simple Tests", CK_FAILURE, "Assertion 'x!=z' failed: x==0x1, z==0x1" },
+#ifdef HAVE_FORK
{ "Signal Tests", CK_ERROR, signal_11_str },
{ "Signal Tests", CK_PASS, "Passed" },
{ "Signal Tests", CK_ERROR, signal_11_8_str },
{ "Signal Tests", CK_FAILURE, "Early exit with return value 1" },
{ "Signal Tests", CK_ERROR, signal_8_str },
{ "Signal Tests", CK_ERROR, signal_8_str },
+#endif
#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
LINENO_ck_assert_ptr_eq,
LINENO_ck_assert_ptr_ne,
+#ifdef HAVE_FORK
/* Signal Tests */
"-1",
"-1",
"-1",
"-1",
"-1",
+#endif /* HAVE_FORK */
#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
Suite *s;
TCase *tc_simple;
+#ifdef HAVE_FORK
TCase *tc_signal;
+#endif
#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
TCase *tc_timeout_env_int;
s = suite_create("Check Servant");
tc_simple = tcase_create("Simple Tests");
+#ifdef HAVE_FORK
tc_signal = tcase_create("Signal Tests");
+#endif /* HAVE_FORK */
#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
setenv("CK_DEFAULT_TIMEOUT", "6", 1);
tc_messaging_and_fork = tcase_create("Msg and fork Tests");
suite_add_tcase (s, tc_simple);
+#ifdef HAVE_FORK
suite_add_tcase (s, tc_signal);
+#endif /* HAVE_FORK */
#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV
suite_add_tcase (s, tc_timeout_env_int);
tcase_add_test (tc_simple, test_ck_assert_ptr_eq);
tcase_add_test (tc_simple, test_ck_assert_ptr_ne);
+#ifdef HAVE_FORK
tcase_add_test (tc_signal, test_segv);
tcase_add_test_raise_signal (tc_signal, test_segv, 11); /* pass */
tcase_add_test_raise_signal (tc_signal, test_segv, 8); /* error */
tcase_add_test_raise_signal (tc_signal, test_fail_unless, 8); /* fail */
tcase_add_test (tc_signal, test_fpe);
tcase_add_test (tc_signal, test_mark_point);
+#endif /* HAVE_FORK */
#if TIMEOUT_TESTS_ENABLED && defined(HAVE_FORK)
#if HAVE_WORKING_SETENV