X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fserver_container.cc;h=6d0c785e7de5f20d5d2d06d549ed7545e5b749ff;hb=93dec285cdb4aab2bff0bae0d50e033b69560181;hp=3c84ad85c339b9e9a7ddfb5021503df1effe2713;hpb=ad5d3efae1a492151ab2b08d370d86d27931c3a9;p=awesomized%2Flibmemcached diff --git a/libtest/server_container.cc b/libtest/server_container.cc index 3c84ad85..6d0c785e 100644 --- a/libtest/server_container.cc +++ b/libtest/server_container.cc @@ -144,7 +144,10 @@ bool server_startup_st::is_helgrind() const bool server_startup(server_startup_st& construct, const std::string& server_type, in_port_t try_port, int argc, const char *argv[]) { Outn(); - (void)try_port; + if (try_port <= 0) + { + libtest::fatal(LIBYATL_DEFAULT_PARAM, "was passed the invalid port number %d", int(try_port)); + } libtest::Server *server= NULL; if (0) @@ -192,11 +195,20 @@ bool server_startup(server_startup_st& construct, const std::string& server_type } } } + else if (server_type.compare("memcached-light") == 0) + { + if (MEMCACHED_LIGHT_BINARY) + { + if (HAVE_LIBMEMCACHED) + { + server= build_memcached_light("localhost", try_port); + } + } + } if (server == NULL) { - Error << "Failure occured while creating server: " << server_type; - return false; + fatal_message("Launching of an unknown server was attempted"); } /*