exit(1);
}
execl(binPath, "vos",
- "listaddrs", "-config", dirname, "-noauth", NULL);
+ "listaddrs", "-config", dirname, "-noauth", "-noresolve", NULL);
exit(1);
}
close(outpipe[1]);
char *dirname;
struct afsconf_dir *dir;
int code, secIndex;
- pid_t serverPid;
+ pid_t serverPid = 0;
struct rx_securityClass *secClass;
struct ubik_client *ubikClient = NULL;
int ret = 0;
afstest_SkipTestsIfBadHostname();
/* Skip all tests if the current hostname is on the loopback network */
afstest_SkipTestsIfLoopbackNetIsDefault();
+ /* Skip all tests if a vlserver is already running on this system. */
+ afstest_SkipTestsIfServerRunning("afs3-vlserver");
plan(6);
TestListAddrs(ubikClient, dirname);
- code = afstest_StopServer(serverPid);
- is_int(0, code, "Server exited cleanly");
-
out:
+ if (serverPid != 0) {
+ code = afstest_StopServer(serverPid);
+ is_int(0, code, "Server exited cleanly");
+ }
+
afstest_UnlinkTestConfig(dirname);
return ret;
}