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

test.h File Reference


Detailed Description

IPRT - Testcase Framework.

Definition in file test.h.

#include <iprt/cdefs.h>
#include <iprt/types.h>
#include <iprt/stdarg.h>

Go to the source code of this file.

Defines

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

Typedefs

typedef RTTEST const * PCRTTEST
typedef RTTESTPRTTEST
typedef struct RTTESTINTRTTEST

Enumerations

enum  RTTESTLVL {
  RTTESTLVL_INVALID = 0, RTTESTLVL_ALWAYS, RTTESTLVL_FAILURE, RTTESTLVL_SUB_TEST,
  RTTESTLVL_INFO, RTTESTLVL_DEBUG, RTTESTLVL_END
}

Functions

 RTR3DECL (void *) RTTestGuardedAllocTail(RTTEST hTest
 RTR3DECL (int) RTTestCreate(const char *pszTest

Variables

size_t cb
size_t uint32_t cbAlign
RTTESTLVL enmLevel
size_t uint32_t bool fHead
PRTTEST phTest
size_t uint32_t bool void ** ppvUser
RTTESTLVL const char * pszFormat
const char * pszSubTest
void * pv
RTTESTLVL const char va_list va


Generated by  Doxygen 1.6.0   Back to index