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/bbackupd/testbbackupd.cpp | |
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/bbackupd/testbbackupd.cpp')
-rw-r--r-- | test/bbackupd/testbbackupd.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index a0732c21..0e9e9b9d 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -461,7 +461,9 @@ int test_kill_bbstored() ::safe_sleep(1); TEST_THAT(!ServerIsAlive(bbstored_pid)); - #ifndef WIN32 + #ifdef WIN32 + TEST_THAT(unlink("testfiles/bbstored.pid") == 0); + #else TestRemoteProcessMemLeaks("bbstored.memleaks"); #endif |