pipe(outpipe);
pid = fork();
if (pid == 0) {
+ char *build, *binPath;
+
dup2(outpipe[1], STDOUT_FILENO); /* Redirect stdout into pipe */
close(outpipe[0]);
close(outpipe[1]);
- execl("../../src/volser/vos", "vos",
+ build = getenv("BUILD");
+ if (build == NULL)
+ build = "..";
+
+ asprintf(&binPath, "%s/../src/volser/vos", build);
+ execl(binPath, "vos",
"listaddrs", "-config", dirname, "-noauth", NULL);
+ exit(1);
}
close(outpipe[1]);
buffer = malloc(4096);
TestListAddrs(ubikClient, dirname);
- code = afstest_StopVLServer(serverPid);
+ code = afstest_StopServer(serverPid);
is_int(0, code, "Server exited cleanly");
return 0;