[Box Backup-dev] COMMIT r915 - box/chris/merge/test/backupdiff
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Fri Sep 1 08:52:51 BST 2006
Author: chris
Date: 2006-09-01 08:52:51 +0100 (Fri, 01 Sep 2006)
New Revision: 915
Modified:
box/chris/merge/test/backupdiff/testbackupdiff.cpp
Log:
(refs #3)
Close open file handles on Win32
Modified: box/chris/merge/test/backupdiff/testbackupdiff.cpp
===================================================================
--- box/chris/merge/test/backupdiff/testbackupdiff.cpp 2006-09-01 07:51:45 UTC (rev 914)
+++ box/chris/merge/test/backupdiff/testbackupdiff.cpp 2006-09-01 07:52:51 UTC (rev 915)
@@ -384,6 +384,7 @@
FileStream out("testfiles/f0.encoded", O_WRONLY | O_CREAT | O_EXCL);
std::auto_ptr<IOStream> 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 @@
FileStream out("testfiles/f9.zerotest", O_WRONLY | O_CREAT | O_EXCL);
std::auto_ptr<IOStream> encoded(BackupStoreFile::EncodeFile("testfiles/f9", 1 /* dir ID */, fn));
encoded->CopyStreamTo(out);
+ out.Close();
check_encoded_file("testfiles/f9.zerotest", 0, 0, 0);
}
{
More information about the Boxbackup-dev
mailing list