diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-11-04 03:24:11 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-11-04 03:24:11 +0000 |
commit | 44b4c618d2506c861503bc1f6b4e0842339e051a (patch) | |
tree | 88a38375e59f415eb78f2fee4261c4ee7fd79792 /test | |
parent | f0bb6dbac03b50177a433727e31a5b5b3ee80c17 (diff) |
Move sync helper functions from test/bbackupd to Test.h to share with
other tests, particularly test/backupstorefix.
Diffstat (limited to 'test')
-rw-r--r-- | test/bbackupd/testbbackupd.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index ca3b5b54..5b7e2e6a 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -542,37 +542,7 @@ void do_interrupted_restore(const TLSContext &context, int64_t restoredirid) } } } -#endif // !WIN32 - -void force_sync() -{ - TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf " - "force-sync") == 0); - TestRemoteProcessMemLeaks("bbackupctl.memleaks"); -} - -void wait_for_sync_start() -{ - TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf " - "wait-for-sync") == 0); - TestRemoteProcessMemLeaks("bbackupctl.memleaks"); -} -void wait_for_sync_end() -{ - TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf " - "wait-for-end") == 0); - TestRemoteProcessMemLeaks("bbackupctl.memleaks"); -} - -void sync_and_wait() -{ - TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf " - "force-sync") == 0); - TestRemoteProcessMemLeaks("bbackupctl.memleaks"); -} - -#ifdef WIN32 bool set_file_time(const char* filename, FILETIME creationTime, FILETIME lastModTime, FILETIME lastAccessTime) { |