[Box Backup-commit] COMMIT r1913 - box/trunk/test/bbackupd
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sun Nov 4 04:16:26 GMT 2007
Author: chris
Date: 2007-11-04 04:16:26 +0000 (Sun, 04 Nov 2007)
New Revision: 1913
Modified:
box/trunk/test/bbackupd/testbbackupd.cpp
Log:
Include the time taken by bbackupquery compare in the time between
syncs, used to check that the SyncAllowScript pauses backup for the
correct length of time.
Modified: box/trunk/test/bbackupd/testbbackupd.cpp
===================================================================
--- box/trunk/test/bbackupd/testbbackupd.cpp 2007-11-04 04:10:38 UTC (rev 1912)
+++ box/trunk/test/bbackupd/testbbackupd.cpp 2007-11-04 04:16:26 UTC (rev 1913)
@@ -1622,6 +1622,10 @@
TEST_THAT(stat("testfiles" DIRECTORY_SEPARATOR
"syncallowscript.notifyran.2", &st) == 0);
+ // bbackupquery compare might take a while
+ // on slow machines, so start the timer now
+ long start_time = time(NULL);
+
// check that no backup has run (compare fails)
compareReturnValue = ::system(BBACKUPQUERY " -q "
"-c testfiles/bbackupd.conf "
@@ -1630,7 +1634,6 @@
TEST_RETURN(compareReturnValue, 2);
TestRemoteProcessMemLeaks("bbackupquery.memleaks");
- long start_time = time(NULL);
TEST_THAT(unlink(sync_control_file) == 0);
wait_for_sync_start();
long end_time = time(NULL);
More information about the Boxbackup-commit
mailing list