summaryrefslogtreecommitdiff
path: root/test/bbackupd
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-04-22 20:46:51 +0000
committerChris Wilson <chris+github@qwirx.com>2007-04-22 20:46:51 +0000
commita6a6ca0bb3bae5ba252f3593e418a496377798ed (patch)
treece45a49f664ec6baa1c9e5a761bfaa2510113da1 /test/bbackupd
parenta670b7cb878bbb12532d8be0eba2cb2386972e95 (diff)
Use wait_for_sync_end() rather than calling bbackupquery ourselves (refs #3)
Diffstat (limited to 'test/bbackupd')
-rw-r--r--test/bbackupd/testbbackupd.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp
index 70c5e394..7d703492 100644
--- a/test/bbackupd/testbbackupd.cpp
+++ b/test/bbackupd/testbbackupd.cpp
@@ -1801,13 +1801,12 @@ int test_bbackupd()
TEST_RETURN(compareReturnValue, 1);
TestRemoteProcessMemLeaks("bbackupquery.memleaks");
- // Check that modifying files with old timestamps still get added
- printf("Modify existing file, but change timestamp to rather old\n");
- // Time critical, so sync
- TEST_THAT(::system("../../bin/bbackupctl/bbackupctl -q -c testfiles/bbackupd.conf wait-for-sync") == 0);
- TestRemoteProcessMemLeaks("bbackupctl.memleaks");
- // Then wait a second, to make sure the scan is complete
- ::safe_sleep(1);
+ // Check that modifying files with old timestamps
+ // still get added
+ printf("\n==== Modify existing file, but change timestamp "
+ "to rather old\n");
+ wait_for_sync_end();
+
// Then modify an existing file
{
chmod("testfiles/TestDir1/sub23/rand.h", 0777); // in the archive, it's read only