Add in better testing for gdb.
[m6w6/libmemcached] / libtest / memcached.cc
index 6f81dd6c790b696974ab087ad9cb16f4d93ae526..c5358bf53fa5da4bdf4b6b7c68f777bddd87c873 100644 (file)
@@ -123,7 +123,7 @@ public:
     // Memcached is slow to start, so we need to do this
     if (not pid_file().empty())
     {
-      if (not wait_for_pidfile())
+      if (wait_for_pidfile() == false)
       {
         Error << "Pidfile was not found:" << pid_file();
         return -1;
@@ -320,6 +320,22 @@ public:
     return true;
   }
 
+  void log_file_option(Application& app, const std::string& arg)
+  {
+    if (arg.empty() == false)
+    {
+      std::string buffer("--log-file=");
+      buffer+= arg;
+      app.add_option("--verbose");
+      app.add_option(buffer);
+    }
+  }
+
+  bool has_log_file_option() const
+  {
+    return true;
+  }
+
   bool build(size_t argc, const char *argv[]);
 };