Changeset 18366 in vbox for trunk/include/iprt
- Timestamp:
- Mar 27, 2009 3:13:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/test.h
r18364 r18366 1 1 /** @file 2 * IPRT - Test .2 * IPRT - Testcase Framework. 3 3 */ 4 4 … … 35 35 #include <iprt/stdarg.h> 36 36 37 __BEGIN_DECLS 38 39 /** @defgroup grp_rt_test RTTest - Testcase Framework. 40 * @ingroup grp_rt 41 * @{ 42 */ 43 37 44 /** A test handle. */ 38 45 typedef struct RTTESTINT *RTTEST; … … 46 53 47 54 48 __BEGIN_DECLS49 50 51 55 /** 52 56 * Creates a test instance. … … 204 208 RTR3DECL(int) RTTestFailed(RTTEST hTest, const char *pszFormat, ...); 205 209 210 211 /** @def RTTEST_CHECK 212 * Check whether a boolean expression holds true. 213 * 214 * If the expression is false, call RTTestFailed giving the line number and expression. 215 * 216 * @param hTest The test handle. 217 * @param expr The expression to evaluate. 218 */ 219 #define RTTEST_CHECK(hTest, expr) \ 220 do { if (!(expr)) { RTTestFailed((hTest), "line %u: %s", __LINE__, #expr); } } while (0) 221 222 223 /** @} */ 224 206 225 __END_DECLS 207 226
Note:
See TracChangeset
for help on using the changeset viewer.