Changeset 1003
- Timestamp:
- 12/10/2006 23:22:05 (5 years ago)
- File:
-
- 1 edited
-
box/trunk/test/backupdiff/testbackupdiff.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/test/backupdiff/testbackupdiff.cpp
r1002 r1003 370 370 // Want to trace out all the details 371 371 #ifndef NDEBUG 372 #ifndef WIN32 372 373 BackupStoreFile::TraceDetailsOfDiffProcess = true; 374 #endif 373 375 #endif 374 376 … … 504 506 // found. Check this out! 505 507 508 #ifdef WIN32 509 ::fprintf(stdout, "Testing diffing two large streams, " 510 "may take a while!\n"); 511 ::fflush(stdout); 512 #endif 513 506 514 make_file_of_zeros("testfiles/zero.0", 20*1024*1024); 507 515 make_file_of_zeros("testfiles/zero.1", 200*1024*1024); 516 508 517 // Generate a first encoded file 509 518 { … … 525 534 0, 0)); 526 535 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 527 542 TEST_THAT(time(0) < (beginTime + 40)); 543 #endif 528 544 } 529 545 // Remove zero-files to save disk space
Note: See TracChangeset
for help on using the changeset viewer.
