summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-09-01 07:52:51 +0000
committerChris Wilson <chris+github@qwirx.com>2006-09-01 07:52:51 +0000
commit77ce6b04eccfc64b7f7a91cf2376ebb1e28fd56e (patch)
tree99c3bf6d87a2852c9a83327385369a6605f948eb /test
parent3eeab89ddcaa563a316092c1a20df3d67ce2d456 (diff)
(refs #3)
Close open file handles on Win32
Diffstat (limited to 'test')
-rw-r--r--test/backupdiff/testbackupdiff.cpp2
1 files changed, 2 insertions, 0 deletions
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<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 @@ int test(int argc, const char *argv[])
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);
}
{