Changeset 2291 for box/trunk/test


Ignore:
Timestamp:
26/09/2008 21:18:13 (4 years ago)
Author:
chris
Message:

Reinstate and fix the intercept tests for SSL keepalives.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/test/bbackupd/testbbackupd.cpp

    r2276 r2291  
    706706         
    707707        // ensure that no child processes end up running tests! 
    708         TEST_EQUAL(own_pid, getpid(), "Forking test problem"); 
    709708        if (getpid() != own_pid) 
    710709        { 
    711710                // abort! 
    712                 _exit(1); 
     711                BOX_INFO("Daemon child finished, exiting now."); 
     712                _exit(0); 
    713713        } 
    714714 
     
    744744bool stop_internal_daemon(int pid) 
    745745{ 
    746         bool killed_server = KillServer(pid, true); 
     746        bool killed_server = KillServer(pid, false); 
    747747        TEST_THAT(killed_server); 
    748748        return killed_server; 
     
    893893                        "| ( cd testfiles/TestDir1 && tar xf - )") == 0); 
    894894        #endif 
    895          
    896 #if 1 
    897 // #ifdef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 
     895 
     896#ifdef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 
    898897        printf("\n==== Skipping intercept-based KeepAlive tests " 
    899898                "on this platform.\n"); 
     
    25492548                                > 1024); 
    25502549                } 
    2551          
     2550 
    25522551                // wait for backup daemon to do it's stuff, and compare again 
    25532552                wait_for_backup_operation(); 
Note: See TracChangeset for help on using the changeset viewer.