X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fserver.h;h=736810be0ae94b895ecf2523d479fa0bd54c1869;hb=2d9bd6ba5e72099ae4c5287ade99300c7f6bd1b7;hp=2f9fa2f1d0682d6b64b66f0a558159b73703b2ee;hpb=999006a8904a0f08293f1df7bda81bff914b091a;p=m6w6%2Flibmemcached diff --git a/libtest/server.h b/libtest/server.h index 2f9fa2f1..736810be 100644 --- a/libtest/server.h +++ b/libtest/server.h @@ -210,6 +210,21 @@ public: 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 +264,7 @@ private: bool set_log_file(); bool set_socket_file(); void reset_pid(); + std::string _error; }; std::ostream& operator<<(std::ostream& output, const libtest::Server &arg);