Ignore:
Timestamp:
04/11/2007 15:20:09 (5 years ago)
Author:
chris
Message:

Wait for long enough after creating test files that they will actually
be seen as old enough to upload by bbackupd.

Fix comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/test/backupstorefix/testbackupstorefix.cpp

    r1909 r1918  
    311311                        " testfiles/testbackupstorefix.pl init") == 0); 
    312312 
    313                 int bbackupd_pid = LaunchServer(BBACKUPD  
    314                         " testfiles/bbackupd.conf", "testfiles/bbackupd.pid"); 
     313                std::string cmd = BBACKUPD + bbackupd_args + 
     314                        " testfiles/bbackupd.conf"; 
     315                int bbackupd_pid = LaunchServer(cmd, "testfiles/bbackupd.pid"); 
    315316                TEST_THAT(bbackupd_pid != -1 && bbackupd_pid != 0); 
    316317 
     
    319320                        ::safe_sleep(1); 
    320321                        TEST_THAT(ServerIsAlive(bbackupd_pid)); 
     322 
     323                        // Wait 4 more seconds for the files to be old enough 
     324                        // to upload 
     325                        ::safe_sleep(4); 
    321326         
    322                         // Create a nice store directory 
     327                        // Upload files to create a nice store directory 
    323328                        ::sync_and_wait(); 
    324329 
    325                         // That'll do nicely, stop the server    
     330                        // Stop bbackupd 
    326331                        #ifdef WIN32 
    327332                                terminate_bbackupd(bbackupd_pid); 
Note: See TracChangeset for help on using the changeset viewer.