summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-04-22 14:38:11 +0000
committerChris Wilson <chris+github@qwirx.com>2007-04-22 14:38:11 +0000
commit4116e6dfe7ad6b4867fd21a814f61556c419fd13 (patch)
tree767ea58890b45ba67065499b3c2184cc26996903 /test
parent4ce68eed0d932c45ec959a828a05aabbcbc6d33d (diff)
Fix excessively verbose warnings while waiting for daemon to start.
(refs #3)
Diffstat (limited to 'test')
-rw-r--r--test/bbackupd/testbbackupd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp
index ac4efee9..d60aae86 100644
--- a/test/bbackupd/testbbackupd.cpp
+++ b/test/bbackupd/testbbackupd.cpp
@@ -642,7 +642,11 @@ int start_internal_daemon()
fflush(stdout);
safe_sleep(1);
- pid = ReadPidFile("testfiles/bbackupd.pid");
+ if (TestFileExists("testfiles/bbackupd.pid"))
+ {
+ pid = ReadPidFile("testfiles/bbackupd.pid");
+ }
+
if (pid > 0)
{
break;