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

#define RTTEST_CHECK_RET (   hTest,
  expr,
  rcRet 
)
Value:
do { if (!(expr)) { \
            RTTestFailed((hTest), "line %u: %s", __LINE__, #expr); \
            return (rcRet); \
         } \
    } while (0)

Check whether a boolean expression holds true, returns on false.

If the expression is false, call RTTestFailed giving the line number and expression.

Parameters:
hTestThe test handle.
exprThe expression to evaluate.
rcRetWhat to return on failure.

Definition at line 520 of file test.h.

Referenced by testWaitForAllOtherThreadsToSleep(), and testWaitForSomethingToBeOwned().


Generated by  Doxygen 1.6.0   Back to index