From 77ce6b04eccfc64b7f7a91cf2376ebb1e28fd56e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 1 Sep 2006 07:52:51 +0000 Subject: (refs #3) Close open file handles on Win32 --- test/backupdiff/testbackupdiff.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/backupdiff/testbackupdiff.cpp') diff --git a/test/backupdiff/testbackupdiff.cpp b/test/backupdiff/testbackupdiff.cpp index 9daa916e..7a48ec20 100644 --- a/test/backupdiff/testbackupdiff.cpp +++ b/test/backupdiff/testbackupdiff.cpp @@ -384,6 +384,7 @@ int test(int argc, const char *argv[]) FileStream out("testfiles/f0.encoded", O_WRONLY | O_CREAT | O_EXCL); std::auto_ptr encoded(BackupStoreFile::EncodeFile("testfiles/f0", 1 /* dir ID */, f0name)); encoded->CopyStreamTo(out); + out.Close(); check_encoded_file("testfiles/f0.encoded", 0, 33, 0); } @@ -444,6 +445,7 @@ int test(int argc, const char *argv[]) FileStream out("testfiles/f9.zerotest", O_WRONLY | O_CREAT | O_EXCL); std::auto_ptr encoded(BackupStoreFile::EncodeFile("testfiles/f9", 1 /* dir ID */, fn)); encoded->CopyStreamTo(out); + out.Close(); check_encoded_file("testfiles/f9.zerotest", 0, 0, 0); } { -- cgit v1.2.1