+static test_return_t check_dns_TEST(void *)
+{
+ test_warn(libtest::check_dns(), "Broken DNS server/no DNS server found");
+
+ return TEST_SUCCESS;
+}
+
+static test_return_t Timer_TEST(void *)
+{
+ int64_t minutes= random() % 50;
+ minutes++;
+
+ Timer check;
+
+ check.reset();
+ check.offset(minutes, 2, 200);
+
+ test_compare(check.minutes(), minutes);
+
+ return TEST_SUCCESS;
+}
+
+static test_return_t lookup_true_TEST(void *)
+{
+ test_warn(libtest::lookup("exist.gearman.info"), "dns is not currently working");
+ return TEST_SUCCESS;
+}
+
+static test_return_t lookup_false_TEST(void *)
+{
+ if (libtest::lookup("does_not_exist.gearman.info"))
+ {
+ Error << "Broken DNS server detected";
+ return TEST_SKIPPED;
+ }
+
+ return TEST_SUCCESS;
+}
+