X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fserver.cc;h=c29d8c4338b9a4c3ed2f565526611827d9a8010e;hb=1267d56c788cf8628c4111042d01b926f4a58dba;hp=0fd1bbf366bbce0465d6e03cf37b95a0545e6809;hpb=ad5d3efae1a492151ab2b08d370d86d27931c3a9;p=awesomized%2Flibmemcached diff --git a/libtest/server.cc b/libtest/server.cc index 0fd1bbf3..c29d8c43 100644 --- a/libtest/server.cc +++ b/libtest/server.cc @@ -132,7 +132,11 @@ bool Server::start() Error << "Could not kill() existing server during start() pid:" << _pid; return false; } - assert(not has_pid()); + + if (has_pid() == false) + { + fatal_message("has_pid() failed, programer error"); + } Application app(name(), is_libtool()); if (args(app) == false) @@ -141,15 +145,16 @@ bool Server::start() return false; } - if (Application::SUCCESS != app.run()) + Application::error_t ret; + if (Application::SUCCESS != (ret= app.run())) { - Error << "Application::run()"; + Error << "Application::run() " << ret; return false; } - if (Application::SUCCESS != app.wait()) + if (Application::SUCCESS != (ret= app.wait())) { - Error << "Application::wait()"; + Error << "Application::wait() " << ret; return false; }