X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fserver.cc;h=d024d054ab02e4e6d1e284c7a601930f49f8238e;hb=437035af73d2793065584d606c1bcd50773afc38;hp=33b20ad89c3b940bde58b2905ab715029a3f54fa;hpb=17690735658d7b44f91579df91e31da9ae185158;p=awesomized%2Flibmemcached diff --git a/libtest/server.cc b/libtest/server.cc index 33b20ad8..d024d054 100644 --- a/libtest/server.cc +++ b/libtest/server.cc @@ -173,6 +173,22 @@ bool Server::wait_for_pidfile() const return wait.successful(); } +bool Server::init(const char *argv[]) +{ + if (argv) + { + for (const char **ptr= argv; *ptr ; ++ptr) + { + if (ptr) + { + add_option(*ptr); + } + } + } + + return build(); +} + bool Server::has_pid() const { return (_app.pid() > 1);