Browse Source

Stop running DNS tests under valgrind.

Brian Aker 12 years ago
parent
commit
ab59a772a6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libtest/dns.cc

+ 5 - 0
libtest/dns.cc

@@ -96,6 +96,11 @@ bool lookup(const char* host)
 
 bool check_dns()
 {
+  if (valgrind_is_caller())
+  {
+    return false;
+  }
+
   if (lookup("exist.gearman.info") == false)
   {
     return false;