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

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

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

Definition at line 665 of file test.h.

Referenced by testLatin1(), testStartThreads(), testThreadBlocking(), testWaitForAllOtherThreadsToSleep(), testWaitForSomethingToBeOwned(), and testWaitForThreads().

Generated by  Doxygen 1.6.0   Back to index