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:
Simon Wilkinson 2012-04-20 15:36:29 +01:00 committed by Derrick Brashear
parent 2ce3fdc5dc
commit 5cfea96b23
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ extern int afstest_AddDESKeyFile(struct afsconf_dir *dir);
/* servers.c */ /* servers.c */
extern int afstest_StartVLServer(char *dirname, pid_t *serverPid); 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 */ /* ubik.c */
struct ubik_client; struct ubik_client;

View File

@ -45,7 +45,7 @@ afstest_StartVLServer(char *dirname, pid_t *serverPid)
} }
int int
afstest_StopVLServer(pid_t serverPid) afstest_StopServer(pid_t serverPid)
{ {
int status; int status;

View File

@ -125,7 +125,7 @@ main(int argc, char **argv)
TestListAddrs(ubikClient, dirname); TestListAddrs(ubikClient, dirname);
code = afstest_StopVLServer(serverPid); code = afstest_StopServer(serverPid);
is_int(0, code, "Server exited cleanly"); is_int(0, code, "Server exited cleanly");
return 0; return 0;