X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libtest%2Fserver.h;h=a41e621bb1f491cccf804d334493b360c53e4409;hb=4e38a2eadb390c100cbc8e73bf257c49f6eeb7d8;hp=2f9fa2f1d0682d6b64b66f0a558159b73703b2ee;hpb=9139975f5fe7895259645117b1e0e9a6cb9c27cc;p=m6w6%2Flibmemcached diff --git a/libtest/server.h b/libtest/server.h index 2f9fa2f1..a41e621b 100644 --- a/libtest/server.h +++ b/libtest/server.h @@ -204,12 +204,25 @@ public: _log_file.clear(); } - bool args(Application&); - pid_t pid() const; bool has_pid() const; + virtual bool has_pid_file() const + { + return true; + } + + const std::string& error() + { + return _error; + } + + void error(std::string arg) + { + _error= arg; + } + virtual bool wait_for_pidfile() const; bool check_pid(pid_t pid_arg) const @@ -249,6 +262,9 @@ private: bool set_log_file(); bool set_socket_file(); void reset_pid(); + bool args(Application&); + + std::string _error; }; std::ostream& operator<<(std::ostream& output, const libtest::Server &arg);