[Box Backup-commit] COMMIT r1056 - box/chris/general/test/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sun, 15 Oct 2006 20:27:03 +0100
Author: chris
Date: 2006-10-15 20:27:03 +0100 (Sun, 15 Oct 2006)
New Revision: 1056
Modified:
box/chris/general/test/common/testcommon.cpp
Log:
Compile fix.
Modified: box/chris/general/test/common/testcommon.cpp
===================================================================
--- box/chris/general/test/common/testcommon.cpp 2006-10-15 19:21:05 UTC (rev 1055)
+++ box/chris/general/test/common/testcommon.cpp 2006-10-15 19:27:03 UTC (rev 1056)
@@ -157,6 +157,7 @@
TEST_CHECK_THROWS(InvisibleTempFileStream fs4(tempfile.c_str(),
O_CREAT | O_EXCL), CommonException, OSFileOpenError);
+ fs2.Close();
#else
// file is not visible under Unix
TEST_THAT(!TestFileExists(tempfile.c_str()));
@@ -177,7 +178,6 @@
#endif
fs.Close();
- fs2.Close();
fs3.Close();
// now that it's closed, it should be invisible on all platforms