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

#define RTTEST_CHECK_RC_OK_RETV (   hTest,
  rcExpr 
)
Value:
do { \
        int rcCheck = (rcExpr); \
        if (RT_FAILURE(rcCheck)) { \
            RTTestFailed((hTest), "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 RTTestFailed giving the line number, expression and status code, then return.

Parameters:
hTestThe test handle.
rcExprThe expression resulting in an IPRT status code.

Definition at line 701 of file test.h.


Generated by  Doxygen 1.6.0   Back to index