Changeset 2452
- Timestamp:
- 15/03/2009 22:45:45 (3 years ago)
- File:
-
- 1 edited
-
box/trunk/test/bbackupd/testbbackupd.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/test/bbackupd/testbbackupd.cpp
r2427 r2452 2619 2619 "testfiles/0_2/backup/01234567/info.rf") == 0); 2620 2620 2621 int store_fixed_time = time(NULL); 2622 2621 2623 // Check that we DO get errors on compare (cannot do this 2622 2624 // until after we fix the store, which creates a race) … … 2633 2635 "notifyran.backup-start.wait-snapshot.1")); 2634 2636 2635 // Set a tag for the notify script to distinguis tfrom2637 // Set a tag for the notify script to distinguish from 2636 2638 // previous runs. 2637 2639 { … … 2643 2645 } 2644 2646 2645 // bbackupd should pause for about 90 seconds 2646 wait_for_backup_operation(85); 2647 // bbackupd should pause for about 90 seconds from store_fixed_time, 2648 // so check that it hasn't run after 85 seconds from store_fixed_time 2649 wait_for_backup_operation(85 - time(NULL) + store_fixed_time); 2647 2650 TEST_THAT(!TestFileExists("testfiles/" 2648 2651 "notifyran.backup-start.wait-snapshot.1")); … … 2714 2717 "testfiles/0_2/backup/01234567/info.rf") == 0); 2715 2718 2719 store_fixed_time = time(NULL); 2720 2716 2721 // Check that we DO get errors on compare (cannot do this 2717 2722 // until after we fix the store, which creates a race) … … 2738 2743 } 2739 2744 2740 // bbackupd should pause for at least 90 seconds 2741 wait_for_backup_operation(85); 2745 // bbackupd should pause for about 90 seconds from store_fixed_time, 2746 // so check that it hasn't run after 85 seconds from store_fixed_time 2747 wait_for_backup_operation(85 - time(NULL) + store_fixed_time); 2742 2748 TEST_THAT(!TestFileExists("testfiles/" 2743 2749 "notifyran.backup-start.wait-automatic.1"));
Note: See TracChangeset
for help on using the changeset viewer.
