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

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

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

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

Parameters:
hTestThe test handle.
rcExprThe expression resulting in an IPRT status code.
rcExpectThe expected return code. This may be referenced more than once by the macro.

Definition at line 646 of file test.h.


Generated by  Doxygen 1.6.0   Back to index