Changeset 2510 for box/trunk/test
- Timestamp:
- 26/04/2009 15:39:21 (3 years ago)
- File:
-
- 1 edited
-
box/trunk/test/bbackupd/testbbackupd.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/test/bbackupd/testbbackupd.cpp
r2506 r2510 2444 2444 // 5 seconds (normally about 3 seconds) 2445 2445 2446 safe_sleep(1); // 2 seconds before2446 wait_for_operation(1, "2 seconds before next run"); 2447 2447 TEST_THAT(stat("testfiles" DIRECTORY_SEPARATOR 2448 2448 "syncallowscript.notifyran.1", &st) != 0); 2449 safe_sleep(4); // 2 seconds after2449 wait_for_operation(4, "2 seconds after run"); 2450 2450 TEST_THAT(stat("testfiles" DIRECTORY_SEPARATOR 2451 2451 "syncallowscript.notifyran.1", &st) == 0); … … 2456 2456 // 10 seconds (normally about 8 seconds) 2457 2457 2458 safe_sleep(6); // 2 seconds before2458 wait_for_operation(6, "2 seconds before next run"); 2459 2459 TEST_THAT(stat("testfiles" DIRECTORY_SEPARATOR 2460 2460 "syncallowscript.notifyran.2", &st) != 0); 2461 safe_sleep(4); // 2 seconds after2461 wait_for_operation(4, "2 seconds after run"); 2462 2462 TEST_THAT(stat("testfiles" DIRECTORY_SEPARATOR 2463 2463 "syncallowscript.notifyran.2", &st) == 0); … … 2482 2482 2483 2483 long wait_time = end_time - start_time + 2; 2484 2484 2485 // should be about 10 seconds 2485 printf("Waited for %ld seconds, should have been %s", 2486 wait_time, control_string); 2486 if (wait_time < 8 || wait_time > 12) 2487 { 2488 printf("Waited for %ld seconds, should have " 2489 "been %s", wait_time, control_string); 2490 } 2491 2487 2492 TEST_THAT(wait_time >= 8); 2488 2493 TEST_THAT(wait_time <= 12);
Note: See TracChangeset
for help on using the changeset viewer.
