diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-04-28 23:09:43 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-04-28 23:09:43 +0000 |
commit | 951f124bb8b17315a0f2af3fd446fb84b90d2a33 (patch) | |
tree | 894784ebef95d6033593d8a4b2013e06a61e84ba /test/bbackupd/testbbackupd.cpp | |
parent | a2e6ac25f8759d1ce440c08ed8519217c74e349e (diff) |
Close updated files during continuous-update test, so that they can be
backed up on Win32. (refs #3)
Diffstat (limited to 'test/bbackupd/testbbackupd.cpp')
-rw-r--r-- | test/bbackupd/testbbackupd.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index 41f7452c..b67488d5 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -2128,16 +2128,18 @@ int test_bbackupd() TEST_THAT(f != 0); fprintf(f, "Loop iteration %d\n", l); fflush(f); - safe_sleep(1); + fclose(f); + printf("."); fflush(stdout); - ::fclose(f); + safe_sleep(1); } printf("\n"); fflush(stdout); // Check there's a difference compareReturnValue = ::system("testfiles/extcheck1.pl"); + TEST_RETURN(compareReturnValue, 1); TestRemoteProcessMemLeaks("bbackupquery.memleaks"); @@ -2146,19 +2148,22 @@ int test_bbackupd() for(int l = 0; l < 28; ++l) { - FILE *f = ::fopen("testfiles/TestDir1/continousupdate", "w+"); + FILE *f = ::fopen("testfiles/TestDir1/" + "continousupdate", "w+"); TEST_THAT(f != 0); fprintf(f, "Loop 2 iteration %d\n", l); fflush(f); - safe_sleep(1); + fclose(f); + printf("."); fflush(stdout); - ::fclose(f); + safe_sleep(1); } printf("\n"); fflush(stdout); compareReturnValue = ::system("testfiles/extcheck2.pl"); + TEST_RETURN(compareReturnValue, 1); TestRemoteProcessMemLeaks("bbackupquery.memleaks"); } |