mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
tests: Make afstest_StopVLServer generic
The StopVLServer function can be used to stop any server for which we know the pid. So, rename it as afstest_StopServer to make this apparent. Change-Id: Ia5973342e81dc15a698e84e69b314cd6157831f7 Reviewed-on: http://gerrit.openafs.org/7258 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
2ce3fdc5dc
commit
5cfea96b23
@ -32,7 +32,7 @@ extern int afstest_AddDESKeyFile(struct afsconf_dir *dir);
|
||||
/* servers.c */
|
||||
|
||||
extern int afstest_StartVLServer(char *dirname, pid_t *serverPid);
|
||||
extern int afstest_StopVLServer(pid_t serverPid);
|
||||
extern int afstest_StopServer(pid_t serverPid);
|
||||
|
||||
/* ubik.c */
|
||||
struct ubik_client;
|
||||
|
@ -45,7 +45,7 @@ afstest_StartVLServer(char *dirname, pid_t *serverPid)
|
||||
}
|
||||
|
||||
int
|
||||
afstest_StopVLServer(pid_t serverPid)
|
||||
afstest_StopServer(pid_t serverPid)
|
||||
{
|
||||
int status;
|
||||
|
||||
|
@ -125,7 +125,7 @@ main(int argc, char **argv)
|
||||
|
||||
TestListAddrs(ubikClient, dirname);
|
||||
|
||||
code = afstest_StopVLServer(serverPid);
|
||||
code = afstest_StopServer(serverPid);
|
||||
is_int(0, code, "Server exited cleanly");
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user