Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

#define RTTESTI_CHECK_RC_OK_RETV (   rcExpr )
do { \
        int rcCheck = (rcExpr); \
        if (RT_FAILURE(rcCheck)) { \
            RTTestIFailed("line %u: %s: %Rrc", __LINE__, #rcExpr, rcCheck); \
            return; \
        } \
    } while (0)

Check whether a IPRT style status code indicates success.

If the status indicates failure, call RTTestIFailed giving the line number, expression and status code, then return.

rcExprThe expression resulting in an IPRT status code.

Definition at line 1117 of file test.h.

Referenced by doBroadcastTest(), doUnicastTest(), tst3(), and tstBidirectionalTransfer().

Generated by  Doxygen 1.6.0   Back to index