Changeset 1003


Ignore:
Timestamp:
12/10/2006 23:22:05 (5 years ago)
Author:
chris
Message:

This test takes a long time on Win32 (slow file access? VMware?), so:

  • Disable verbose debug logging, which makes it even slower
  • Print a warning before the slow test starts
  • Increase timeout
File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/test/backupdiff/testbackupdiff.cpp

    r1002 r1003  
    370370        // Want to trace out all the details 
    371371        #ifndef NDEBUG 
     372        #ifndef WIN32 
    372373        BackupStoreFile::TraceDetailsOfDiffProcess = true; 
     374        #endif 
    373375        #endif 
    374376 
     
    504506        // found. Check this out! 
    505507 
     508        #ifdef WIN32 
     509        ::fprintf(stdout, "Testing diffing two large streams, " 
     510                "may take a while!\n"); 
     511        ::fflush(stdout); 
     512        #endif 
     513 
    506514        make_file_of_zeros("testfiles/zero.0", 20*1024*1024); 
    507515        make_file_of_zeros("testfiles/zero.1", 200*1024*1024); 
     516 
    508517        // Generate a first encoded file 
    509518        { 
     
    525534                        0, 0)); 
    526535                encoded->CopyStreamTo(out); 
     536 
     537                printf("Time taken: %d seconds\n", (int)(time(0) - beginTime)); 
     538 
     539                #ifdef WIN32 
     540                TEST_THAT(time(0) < (beginTime + 300)); 
     541                #else 
    527542                TEST_THAT(time(0) < (beginTime + 40)); 
     543                #endif 
    528544        } 
    529545        // Remove zero-files to save disk space 
Note: See TracChangeset for help on using the changeset viewer.