Have just one debug test, and don't use timers during gdb operations.
[m6w6/libmemcached] / libtest / comparison.cc
index 0429cde87ff5c4d7bbe2dcd042158ad2ad095d7f..4a1d99a301a5b2cfc63010b277e0e03cb0126935 100644 (file)
@@ -34,7 +34,7 @@
  *
  */
 
-#include <config.h>
+#include "mem_config.h"
 #include <libtest/common.h>
 
 namespace libtest {
@@ -66,6 +66,11 @@ bool gdb_is_caller(void)
     return true;
   }
 
+  if (bool(getenv("LIBTEST_IN_GDB")))
+  {
+    return true;
+  }
+
   return false;
 }