Clarification in DNS test.
[awesomized/libmemcached] / libtest / unittest.cc
index 6b11c3b0114f6600c54caff77222f9806938ce3c..8cc8a65ff99d08823ca15d33c26a0bfa55ed4422 100644 (file)
@@ -866,11 +866,8 @@ static test_return_t lookup_true_TEST(void *)
 
 static test_return_t lookup_false_TEST(void *)
 {
-  if (libtest::lookup("does_not_exist.gearman.info"))
-  {
-    Error << "Broken DNS server detected";
-    return TEST_SKIPPED;
-  }
+  SKIP_IF_(libtest::lookup("does_not_exist.gearman.info"),
+           "Broken DNS server detected");
 
   return TEST_SUCCESS;
 }