From 7dbe96fc6f98df3356f1fa1dfb50eaeb4850b546 Mon Sep 17 00:00:00 2001 From: brarcher Date: Sun, 22 Sep 2013 21:27:58 +0000 Subject: [PATCH] Remove explicit set of CK_NOFORK when fork is unavailable the default behavior is to now set the fork mode as CK_NOFORK if fork is unavailable. The code being removed is redundant. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@777 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- tests/check_check_export_main.c | 8 -------- tests/check_check_master.c | 8 -------- 2 files changed, 16 deletions(-) diff --git a/tests/check_check_export_main.c b/tests/check_check_export_main.c index 27d61a9..e0d30fa 100644 --- a/tests/check_check_export_main.c +++ b/tests/check_check_export_main.c @@ -15,14 +15,6 @@ int main (void) sr = srunner_create (make_master_suite()); 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); diff --git a/tests/check_check_master.c b/tests/check_check_master.c index 0c92c97..f83e222 100644 --- a/tests/check_check_master.c +++ b/tests/check_check_master.c @@ -457,14 +457,6 @@ void setup (void) 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); -- 2.40.0