Fix server_startup to allow for SKIPPED.
authorBrian Aker <brian@tangent.org>
Mon, 13 Aug 2012 07:31:21 +0000 (03:31 -0400)
committerBrian Aker <brian@tangent.org>
Mon, 13 Aug 2012 07:31:21 +0000 (03:31 -0400)
tests/libmemcached_world.h
tests/libmemcached_world_socket.h

index 8bc48a71755102d9747a3d3ab22d186c64ffdb7b..5147e1a42a4e0c44acbfc53673b5bcfa8f083d90 100644 (file)
@@ -70,14 +70,22 @@ static void *world_create(libtest::server_startup_st& servers, test_return_t& er
     {
       if (server_startup(servers, "memcached-sasl", port, 0, NULL) == false)
       {
+        error= TEST_SKIPPED;
+#if 0
         fatal_message("Could not start memcached-sasl");
+#endif
+        return NULL;
       }
     }
     else
     {
       if (server_startup(servers, "memcached", port, 0, NULL) == false)
       {
+        error= TEST_SKIPPED;
+#if 0
         fatal_message("Could not start memcached");
+#endif
+        return NULL;
       }
     }
   }
index fbfb5a9cd14a2353135646fbc9bea47f8a649316..a3078e7670d347bd2d2d993536ff569c31934052 100644 (file)
@@ -56,7 +56,11 @@ static void *world_create(libtest::server_startup_st& servers, test_return_t& er
     const char *argv[1]= { "memcached" };
     if (servers.start_socket_server("memcached", libtest::get_free_port(), 1, argv) == false)
     {
+#if 0
       fatal_message("Could not launch memcached");
+#endif
+      error= TEST_SKIPPED;
+      return NULL;
     }
   }