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

#define RTTEST_CHECK_RC (   hTest,
do { \
        int rcCheck = (rcExpr); \
        if (rcCheck != (rcExpect)) { \
            RTTestFailed((hTest), "line %u: %s: expected %Rrc, got %Rrc", __LINE__, #rcExpr, (rcExpect), rcCheck); \
        } \
    } 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.

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 606 of file test.h.

Referenced by testLatin1().

Generated by  Doxygen 1.6.0   Back to index