[Box Backup-commit] COMMIT r3466 - box/trunk/lib/common

subversion at boxbackup.org subversion at boxbackup.org
Sun Dec 21 13:30:22 GMT 2014


Author: chris
Date: 2014-12-21 13:30:22 +0000 (Sun, 21 Dec 2014)
New Revision: 3466

Modified:
   box/trunk/lib/common/Test.cpp
Log:
Add logging for functions that trigger bbackupd using bbackupctl.


Modified: box/trunk/lib/common/Test.cpp
===================================================================
--- box/trunk/lib/common/Test.cpp	2014-12-21 13:26:29 UTC (rev 3465)
+++ box/trunk/lib/common/Test.cpp	2014-12-21 13:30:22 UTC (rev 3466)
@@ -335,23 +335,29 @@
 
 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)




More information about the Boxbackup-commit mailing list