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

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

Check whether a boolean expression holds true.

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

Parameters:
hTestThe test handle.
exprThe expression to evaluate.

Definition at line 506 of file test.h.

Referenced by main(), testLatin1(), testWaitForAllOtherThreadsToSleep(), and testWaitForSomethingToBeOwned().


Generated by  Doxygen 1.6.0   Back to index