Although the tests which check the correctness of fork-based tests
are disabled if fork is unavailable, the remaining tests were
still run assuming fork was available.
If there is no fork, run tests cases with CK_NOFORK
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@771
64e312b2-a51f-0410-8e61-
82d0ca0eb02a
srunner_add_suite(sr, make_log_suite());
srunner_add_suite(sr, make_fork_suite());
+#if !defined(HAVE_FORK)
+ /*
+ * Overriding the default of running tests in fork mode,
+ * as this system does not have fork()
+ */
+ srunner_set_fork_status(sr,CK_NOFORK);
+#endif /* !HAVE_FORK */
+
printf ("Ran %d tests in subordinate suite\n", sub_ntests);
srunner_run_all (sr, CK_VERBOSE);
cleanup();
init_signal_strings();
srunner_add_suite(sr, make_sub2_suite());
+
+#if !defined(HAVE_FORK)
+ /*
+ * Overriding the default of running tests in fork mode,
+ * as this system does not have fork()
+ */
+ srunner_set_fork_status(sr,CK_NOFORK);
+#endif /* !HAVE_FORK */
+
srunner_run_all(sr, CK_VERBOSE);
tr_fail_array = srunner_failures(sr);
tr_all_array = srunner_results(sr);