[Box Backup-dev] COMMIT r661 - box/chris/general/test/backupdiff
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Thu, 20 Jul 2006 20:51:15 +0000 (GMT)
Author: chris
Date: 2006-07-20 20:51:14 +0000 (Thu, 20 Jul 2006)
New Revision: 661
Modified:
box/chris/general/test/backupdiff/testbackupdiff.cpp
Log:
* testbackupdiff.cpp
- Disabled writing debug messages to the console during backupdiff test
on Win32, since it's annoying and slow.
- Reduced timeout slightly now that the test finishes faster.
Modified: box/chris/general/test/backupdiff/testbackupdiff.cpp
===================================================================
--- box/chris/general/test/backupdiff/testbackupdiff.cpp 2006-07-20 20:15:21 UTC (rev 660)
+++ box/chris/general/test/backupdiff/testbackupdiff.cpp 2006-07-20 20:51:14 UTC (rev 661)
@@ -371,8 +371,10 @@
{
// Want to trace out all the details
#ifndef NDEBUG
+ #ifndef WIN32
BackupStoreFile::TraceDetailsOfDiffProcess = true;
#endif
+ #endif
// Create all the test files
create_test_files();
@@ -526,8 +528,10 @@
0, 0));
encoded->CopyStreamTo(out);
+ printf("Time taken: %d seconds\n", time(0) - beginTime);
+
#ifdef WIN32
- TEST_THAT(time(0) < (beginTime + 160));
+ TEST_THAT(time(0) < (beginTime + 120));
#else
TEST_THAT(time(0) < (beginTime + 80));
#endif