tests: Improve failure mode for unresolvable hostname
[openafs.git] / tests / volser / vos-t.c
index e3c499c..3919c0b 100644 (file)
@@ -95,11 +95,13 @@ main(int argc, char **argv)
     struct ubik_client *ubikClient = NULL;
     int ret = 0;
 
-    plan(6);
-
+    /* Skip all tests if the current hostname can't be resolved */
+    afstest_SkipTestsIfBadHostname();
     /* Skip all tests if the current hostname is on the loopback network */
     afstest_SkipTestsIfLoopbackNetIsDefault();
 
+    plan(6);
+
     code = rx_Init(0);
 
     dirname = afstest_BuildTestConfig();