From: brarcher Date: Wed, 21 May 2014 12:07:44 +0000 (+0000) Subject: only declare atexit() test if fork is available X-Git-Tag: 0.10.0~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72ecbc2490f379202c71b78b58d1b5952e520ef0;p=check only declare atexit() test if fork is available The test is already disabled if fork is disabled. No need to compile the code. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1135 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/tests/check_check_sub.c b/tests/check_check_sub.c index c84a655..999ccc1 100644 --- a/tests/check_check_sub.c +++ b/tests/check_check_sub.c @@ -804,6 +804,7 @@ Suite *make_sub2_suite(void) return s; } +#if defined(HAVE_FORK) && HAVE_FORK == 1 void exit_handler(); void exit_handler () { @@ -825,6 +826,7 @@ START_TEST(test_ignore_exit_handlers) #define LINENO_ck_ignore_exit_handlers _STR(__LINE__) } END_TEST +#endif /* HAVE_FORK */ void init_master_tests_lineno(int num_master_tests) { const char * lineno[] = {