summaryrefslogtreecommitdiff
path: root/test/bbackupd
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-03-01 21:32:07 +0000
committerChris Wilson <chris+github@qwirx.com>2008-03-01 21:32:07 +0000
commit4ad89e19d12c3c3fd7ab25dc1eb5a3fb5720cccc (patch)
tree364eca8b6c42ca3386188a14f3da72cca060bbb7 /test/bbackupd
parent0e731ac0420e60e0197dd1a009216f0d1e12f06e (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')
-rw-r--r--test/bbackupd/testbbackupd.cpp4
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