]> granicus.if.org Git - check/commitdiff
Add comment for why test should be CK_FORK mode only
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:54 +0000 (04:13 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:54 +0000 (04:13 +0000)
Some of these tests, now that checked fixtures can be used
with CK_NOFORK mode, may be enabled regardless of fork()
availability. This specific test, however, will not work as is
without fork().

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

tests/check_check_fixture.c

index 9bd8ea26f411ad38e5a4ae7cd784fbcd1e75c46a..4669bd652f0410586da2ad3731a3c1d8d3303970 100644 (file)
@@ -600,7 +600,13 @@ Suite *make_fixture_suite (void)
   tcase_add_test(tc,test_setup_failure_msg);
 
 #if defined(HAVE_FORK) && HAVE_FORK==1
+  /*
+   * This test assumes that CK_FORK is being used,
+   * as it tests that side effects from checked
+   * fixtures do not persist between tests.
+   */
   tcase_add_test(tc,test_ch_setup);
+  
   tcase_add_test(tc,test_ch_setup_fail);
   tcase_add_test(tc,test_ch_setup_fail_nofork);
   tcase_add_test(tc,test_ch_setup_fail_nofork_2);