summaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-12-21 13:30:22 +0000
committerChris Wilson <chris+github@qwirx.com>2014-12-21 13:30:22 +0000
commit2dd0e0ddadba9454309464ed1f63557aaf6f938a (patch)
tree647e632b37e4298f386ad66a897b1b3691d647ab /lib/common
parent911e84ead888d2ba29f39baa27da7f35c505a8c7 (diff)
Add logging for functions that trigger bbackupd using bbackupctl.
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/Test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/common/Test.cpp b/lib/common/Test.cpp
index 67c27cf3..e3ead614 100644
--- a/lib/common/Test.cpp
+++ b/lib/common/Test.cpp
@@ -335,23 +335,29 @@ void force_sync()
void wait_for_sync_start()
{
+ BOX_TRACE("Waiting for sync to start...");
TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf "
"wait-for-sync") == 0);
TestRemoteProcessMemLeaks("bbackupctl.memleaks");
+ BOX_TRACE("Backup daemon reported that sync has started.");
}
void wait_for_sync_end()
{
+ BOX_TRACE("Waiting for sync to finish...");
TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf "
"wait-for-end") == 0);
TestRemoteProcessMemLeaks("bbackupctl.memleaks");
+ BOX_TRACE("Backup daemon reported that sync has finished.");
}
void sync_and_wait()
{
+ BOX_TRACE("Starting a sync and waiting for it to finish...");
TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf "
"sync-and-wait") == 0);
TestRemoteProcessMemLeaks("bbackupctl.memleaks");
+ BOX_TRACE("Backup daemon reported that sync has finished.");
}
void terminate_bbackupd(int pid)