[Box Backup-commit] COMMIT r3535 - box/trunk/test/backupstorefix

subversion at boxbackup.org subversion at boxbackup.org
Fri Feb 27 20:23:05 GMT 2015


Author: chris
Date: 2015-02-27 20:23:05 +0000 (Fri, 27 Feb 2015)
New Revision: 3535

Modified:
   box/trunk/test/backupstorefix/testbackupstorefix.cpp
Log:
Fix testbackupstorefix in release mode.

It was checking for raidfiles files that have different filenames in release
and debug builds, and that aren't even deleted by the test in release builds.


Modified: box/trunk/test/backupstorefix/testbackupstorefix.cpp
===================================================================
--- box/trunk/test/backupstorefix/testbackupstorefix.cpp	2015-02-26 21:03:06 UTC (rev 3534)
+++ box/trunk/test/backupstorefix/testbackupstorefix.cpp	2015-02-27 20:23:05 UTC (rev 3535)
@@ -784,6 +784,8 @@
 		// file, so checking for AsRaid excludes this possibility.
 		RaidFileController &rcontroller(RaidFileController::GetController());
 		RaidFileDiscSet rdiscSet(rcontroller.GetDiscSet(discSetNum));
+
+#ifndef BOX_RELEASE_BUILD // Only if we destroyed these particular files, above.
 		TEST_EQUAL(RaidFileUtil::AsRaid, RaidFileUtil::RaidFileExists(
 			rdiscSet, "backup/01234567/02/01/o00"));
 		TEST_EQUAL(RaidFileUtil::AsRaid, RaidFileUtil::RaidFileExists(
@@ -800,6 +802,7 @@
 			rdiscSet, "backup/01234567/02/01/01/o02"));
 		TEST_EQUAL(RaidFileUtil::AsRaid, RaidFileUtil::RaidFileExists(
 			rdiscSet, "backup/01234567/02/01/01/o03"));
+#endif
 	}
 
 	// ------------------------------------------------------------------------------------------------




More information about the Boxbackup-commit mailing list