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

#define RTTESTI_CHECK_RC_RET (   rcExpr,
do { \
        int rcCheck = (rcExpr); \
        if (rcCheck != (rcExpect)) { \
            RTTestIFailed("line %u: %s: expected %Rrc, got %Rrc", __LINE__, #rcExpr, (rcExpect), rcCheck); \
            return (rcRet); \
        } \
    } while (0)

Check whether an expression returns a specific IPRT style status code.

If a different status code is return, call RTTestIFailed giving the line number, expression, actual and expected status codes, then return.

rcExprThe expression resulting in an IPRT status code. This will be assigned to a local rcCheck variable that can be used as return value.
rcExpectThe expected return code. This may be referenced more than once by the macro.
rcRetThe return code.

Definition at line 1047 of file test.h.

Referenced by tstOpenInterfaces().

Generated by  Doxygen 1.6.0   Back to index