From 3f41f3a22bbbc92b6c439132703d0d0e096bebf3 Mon Sep 17 00:00:00 2001 From: brarcher Date: Mon, 23 Jun 2014 04:13:54 +0000 Subject: [PATCH] Add comment for why test should be CK_FORK mode only 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/check_check_fixture.c b/tests/check_check_fixture.c index 9bd8ea2..4669bd6 100644 --- a/tests/check_check_fixture.c +++ b/tests/check_check_fixture.c @@ -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); -- 2.40.0