X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libtest%2Fserver.h;h=f27ce08f7455066598b6ac333b7eef079cdcc1a9;hb=f1ed1535de64141a6a911cc18a9109f0f9c55c80;hp=2f9fa2f1d0682d6b64b66f0a558159b73703b2ee;hpb=47f45992107361ad58c170bdf78fdc92523fab06;p=awesomized%2Flibmemcached diff --git a/libtest/server.h b/libtest/server.h index 2f9fa2f1..f27ce08f 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 @@ -237,6 +250,16 @@ public: bool validate(); + void out_of_ban_killed(bool arg) + { + out_of_ban_killed_= arg; + } + + bool out_of_ban_killed() + { + return out_of_ban_killed_; + } + protected: bool set_pid_file(); Options _options; @@ -249,6 +272,10 @@ private: bool set_log_file(); bool set_socket_file(); void reset_pid(); + bool out_of_ban_killed_; + bool args(Application&); + + std::string _error; }; std::ostream& operator<<(std::ostream& output, const libtest::Server &arg);