Fix for the light server.
[m6w6/libmemcached] / libtest / cmdline.cc
index 7c2f5f442662748bfabd8e0a70fad4878e08f5bd..6ef407849cad8da6e523691dc3e71676f9999341 100644 (file)
@@ -214,7 +214,10 @@ Application::error_t Application::wait()
     }
     else
     {
-      assert(waited_pid == _pid);
+      if (waited_pid != _pid)
+      {
+        throw libtest::fatal(LIBYATL_DEFAULT_PARAM, "Pid mismatch, %d != %d", int(waited_pid), int(_pid));
+      }
       exit_code= error_t(exited_successfully(status));
     }
   }