]> granicus.if.org Git - check/commitdiff
only declare atexit() test if fork is available
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 21 May 2014 12:07:44 +0000 (12:07 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 21 May 2014 12:07:44 +0000 (12:07 +0000)
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

tests/check_check_sub.c

index c84a6556a4853020ecd22cf589d71465999e077f..999ccc1bf6d53ff2e876bf2937c0cc7862c30f59 100644 (file)
@@ -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[] = {