]> granicus.if.org Git - check/commitdiff
Run fork tests if fork() is defined on system
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 22 Sep 2013 17:22:50 +0000 (17:22 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 22 Sep 2013 17:22:50 +0000 (17:22 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@764 64e312b2-a51f-0410-8e61-82d0ca0eb02a

tests/check_check_master.c
tests/check_check_sub.c

index 22103da2156071a886a8c0578b9f6f72939e408b..ff5240a5e02b374c67f173b50ad769b13b5b65c5 100644 (file)
@@ -192,12 +192,14 @@ static master_test_t master_tests[] = {
   { "Limit Tests", CK_FAILURE, "Completed properly" },
   { "Limit Tests", CK_FAILURE, "Completed properly" },
 
+#ifdef HAVE_FORK
   { "Msg and fork Tests", CK_PASS,       "Passed" },
   { "Msg and fork Tests", CK_FAILURE,    "Expected fail" },
   { "Msg and fork Tests", CK_PASS,       "Passed" },
   { "Msg and fork Tests", CK_FAILURE,    "Expected fail" },
   { "Msg and fork Tests", CK_PASS,       "Passed" },
   { "Msg and fork Tests", CK_FAILURE,    "Expected fail" },
+#endif
 
   { "Core", CK_PASS,    "Passed" },
   { "Core", CK_FAILURE, "We failed" }
index 759231dcc5e4ff9af96fe616983865c859486bb6..1a6ea9c1869f7ca2cc84b01fb2cbad66afb5d792 100644 (file)
@@ -836,6 +836,7 @@ void init_master_tests_lineno(int num_master_tests) {
     "-1",
     "-1",
 
+#ifdef HAVE_FORK
 /* Msg and fork Tests */
     "-1",
     "-1",
@@ -843,6 +844,7 @@ void init_master_tests_lineno(int num_master_tests) {
     "-1",
     "-1",
     "-1",
+#endif /* HAVE_FORK */
 
 /* Core */
     "-1",