diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-03-01 21:32:07 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-03-01 21:32:07 +0000 |
commit | 4ad89e19d12c3c3fd7ab25dc1eb5a3fb5720cccc (patch) | |
tree | 364eca8b6c42ca3386188a14f3da72cca060bbb7 /test/backupstore | |
parent | 0e731ac0420e60e0197dd1a009216f0d1e12f06e (diff) |
Delete bbstored PID file after killing the daemon on Windows, as the
daemon can't clean up after itself.
Diffstat (limited to 'test/backupstore')
-rw-r--r-- | test/backupstore/testbackupstore.cpp | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/test/backupstore/testbackupstore.cpp b/test/backupstore/testbackupstore.cpp index 4030e39f..64271f04 100644 --- a/test/backupstore/testbackupstore.cpp +++ b/test/backupstore/testbackupstore.cpp @@ -1778,9 +1778,12 @@ int test3(int argc, const char *argv[]) TEST_THAT(KillServer(pid)); ::sleep(1); TEST_THAT(!ServerIsAlive(pid)); -#ifndef WIN32 - TestRemoteProcessMemLeaks("bbstored.memleaks"); -#endif + + #ifdef WIN32 + TEST_THAT(unlink("testfiles/bbstored.pid") == 0); + #else + TestRemoteProcessMemLeaks("bbstored.memleaks"); + #endif // Set a new limit on the account -- leave the hard limit // high to make sure the target for freeing space is the @@ -1872,9 +1875,11 @@ int test3(int argc, const char *argv[]) ::sleep(1); TEST_THAT(!ServerIsAlive(pid)); -#ifndef WIN32 - TestRemoteProcessMemLeaks("bbstored.memleaks"); -#endif + #ifdef WIN32 + TEST_THAT(unlink("testfiles/bbstored.pid") == 0); + #else + TestRemoteProcessMemLeaks("bbstored.memleaks"); + #endif } return 0; @@ -1911,9 +1916,12 @@ int multi_server() TEST_THAT(KillServer(pid)); ::sleep(1); TEST_THAT(!ServerIsAlive(pid)); -#ifndef WIN32 - TestRemoteProcessMemLeaks("bbstored.memleaks"); -#endif + + #ifdef WIN32 + TEST_THAT(unlink("testfiles/bbstored.pid") == 0); + #else + TestRemoteProcessMemLeaks("bbstored.memleaks"); + #endif } |