[Box Backup-commit] COMMIT r1055 - box/chris/merge/test/common

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sun Oct 15 20:21:05 BST 2006


Author: chris
Date: 2006-10-15 20:21:05 +0100 (Sun, 15 Oct 2006)
New Revision: 1055

Modified:
   box/chris/merge/test/common/testcommon.cpp
Log:
Compile fix (refs #3)


Modified: box/chris/merge/test/common/testcommon.cpp
===================================================================
--- box/chris/merge/test/common/testcommon.cpp	2006-10-15 19:20:49 UTC (rev 1054)
+++ box/chris/merge/test/common/testcommon.cpp	2006-10-15 19:21:05 UTC (rev 1055)
@@ -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




More information about the Boxbackup-commit mailing list