VirtualBox

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


Ignore:
Timestamp:
Oct 17, 2015 9:59:59 PM (9 years ago)
Author:
vboxsync
Message:

tstRTLocalIpc.cpp: Extended the broken pipe test.

File:
1 edited

Legend:

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

    r58290 r58291  
    286286        RTTESTI_CHECK_RC(RTLocalIpcSessionWaitForData(hClientSession, 0), VERR_BROKEN_PIPE);
    287287        RTTESTI_CHECK_RC(RTLocalIpcSessionWaitForData(hClientSession, RT_MS_1SEC), VERR_BROKEN_PIPE);
     288
     289        bool fMayPanic = RTAssertSetMayPanic(false);
     290        bool fQuiet    = RTAssertSetQuiet(true);
     291
     292        RTTESTI_CHECK_RC(RTLocalIpcSessionWrite(hClientSession, RT_STR_TUPLE("broken")), VERR_BROKEN_PIPE);
     293        uint8_t abBuf[4];
     294        RTTESTI_CHECK_RC(RTLocalIpcSessionRead(hClientSession, abBuf, sizeof(abBuf), NULL), VERR_BROKEN_PIPE);
     295        size_t cbRead = _4M-1;
     296        RTTESTI_CHECK_RC(RTLocalIpcSessionRead(hClientSession, abBuf, sizeof(abBuf), &cbRead), VERR_BROKEN_PIPE);
     297
     298        RTAssertSetMayPanic(fMayPanic);
     299        RTAssertSetQuiet(fQuiet);
    288300    }
    289301
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