VirtualBox

Changeset 58299 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Oct 18, 2015 7:35:41 PM (9 years ago)
Author:
vboxsync
Message:

localipc-win.cpp: Implemented RTLocalIpcSessionReadNB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTLocalIpc.cpp

    r58296 r58299  
    242242            RTTESTI_CHECK_RC(RTLocalIpcSessionWaitForData(hIpcSession, RT_MS_1MIN), VINF_SUCCESS);
    243243
    244 #ifndef RT_OS_WINDOWS
    245244            size_t cbRead;
    246245            char szCmd[64];
     
    250249                RTTestIFailed("cbRead=%zu, expected %zu; szCmd='%s', expected 'disconnect'\n",
    251250                              cbRead, sizeof("disconnect") - 1, szCmd);
    252 #endif
    253251
    254252            RTTESTI_CHECK_RC(RTLocalIpcSessionClose(hIpcSession), VINF_OBJECT_DESTROYED);
     
    285283    uint8_t abBuf[4];
    286284    size_t cbRead = _4M-1;
    287 #ifndef RT_OS_WINDOWS
    288285    RTTESTI_CHECK_RC(RTLocalIpcSessionReadNB(hClientSession, abBuf, sizeof(abBuf), &cbRead), VINF_TRY_AGAIN);
    289286    RTTESTI_CHECK(cbRead == 0);
    290 #endif
    291287
    292288    /* Trigger server disconnect. */
     
    310306        cbRead = _4M-1;
    311307        RTTESTI_CHECK_RC(RTLocalIpcSessionRead(hClientSession, abBuf, sizeof(abBuf), &cbRead), VERR_BROKEN_PIPE);
    312 #ifndef RT_OS_WINDOWS
    313308        cbRead = _1G/2;
    314309        RTTESTI_CHECK_RC(RTLocalIpcSessionReadNB(hClientSession, abBuf, sizeof(abBuf), &cbRead), VERR_BROKEN_PIPE);
    315 #endif
    316310
    317311        RTAssertSetMayPanic(fMayPanic);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette