Ignore:
Timestamp:
12/10/2006 23:23:32 (6 years ago)
Author:
chris
Message:
  • We cannot open multiple connections to the server on Win32, so work around.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/test/backupstore/testbackupstore.cpp

    r1005 r1006  
    932932                TEST_THAT(loginConf->GetClientStoreMarker() == 0); 
    933933 
     934#ifndef WIN32 
    934935                // Check that we can't open a new connection which requests write permissions 
    935936                { 
     
    943944                        protocol.QueryFinished(); 
    944945                } 
     946#endif 
    945947                 
    946948                // Set the client store marker 
    947949                protocol.QuerySetClientStoreMarker(0x8732523ab23aLL); 
    948950 
     951#ifndef WIN32 
    949952                // Open a new connection which is read only 
    950953                SocketStreamTLS connReadOnly; 
     
    965968                        TEST_THAT(loginConf->GetClientStoreMarker() == 0x8732523ab23aLL); 
    966969                } 
     970#else // WIN32 
     971                BackupProtocolClient& protocolReadOnly(protocol); 
     972#endif 
    967973 
    968974                test_server_1(protocol, protocolReadOnly); 
    969  
    970975 
    971976                // Create and upload some test files 
     
    14401445                         
    14411446                // Finish the connections 
     1447#ifndef WIN32 
    14421448                protocolReadOnly.QueryFinished(); 
     1449#endif 
    14431450                protocol.QueryFinished(); 
    14441451                 
    14451452                // Close logs 
     1453#ifndef WIN32 
    14461454                ::fclose(protocolReadOnlyLog); 
     1455#endif 
    14471456                ::fclose(protocolLog); 
    14481457        } 
Note: See TracChangeset for help on using the changeset viewer.