]> granicus.if.org Git - check/commitdiff
check_check: do setup regardless of availability of fork
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 22 Sep 2013 21:27:47 +0000 (21:27 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 22 Sep 2013 21:27:47 +0000 (21:27 +0000)
The tests originally protected by the HAVE_FORK check will
work if fork is unavailable. Further, setup() does work that
is required by the tests which follow.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@773 64e312b2-a51f-0410-8e61-82d0ca0eb02a

tests/check_check_main.c

index db99fdca051cc4c7149a8fc93c80b6dfe3165a09..7e858fcbf6f8a0273ae62b9e579658510a7fbd9c 100644 (file)
@@ -10,11 +10,9 @@ int main (void)
   int n;
   SRunner *sr;
 
-#ifdef HAVE_FORK
   fork_setup();
   setup_fixture();
   setup();
-#endif /* HAVE_FORK */
 
   sr = srunner_create (make_master_suite());
   srunner_add_suite(sr, make_list_suite());