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

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

Check whether a IPRT style status code indicates success.

If the status indicates failure, call RTTestFailed giving the line number, expression and status code, then return with the specified value.

hTestThe test handle.
rcExprThe expression resulting in an IPRT status code. This will be assigned to a local rcCheck variable that can be used as return value.
rcRetThe return code.

Definition at line 684 of file test.h.

Referenced by testStartThreads().

Generated by  Doxygen 1.6.0   Back to index