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.

Implicit Test Handle API Variation

The test handle is retrieved from the test TLS entry of the calling thread.

#define RTTESTI_CHECK(expr)
#define RTTESTI_CHECK_MSG(expr, DetailsArgs)
#define RTTESTI_CHECK_MSG_RET(expr, DetailsArgs, rcRet)
#define RTTESTI_CHECK_MSG_RETV(expr, DetailsArgs)
#define RTTESTI_CHECK_RC(rcExpr, rcExpect)
#define RTTESTI_CHECK_RC_OK(rcExpr)
#define RTTESTI_CHECK_RC_OK_RET(rcExpr, rcRet)
#define RTTESTI_CHECK_RC_OK_RETV(rcExpr)
#define RTTESTI_CHECK_RC_RET(rcExpr, rcExpect, rcRet)
#define RTTESTI_CHECK_RC_RETV(rcExpr, rcExpect)
#define RTTESTI_CHECK_RET(expr, rcRet)
#define RTTESTI_CHECK_RETV(expr)
RTTESTLVL const char * pszFormat
RTTESTLVL const char va_list va

Defines

#define NIL_RTTEST   ((RTTEST)0)
#define RTTEST_CHECK(hTest, expr)
#define RTTEST_CHECK_MSG(hTest, expr, DetailsArgs)
#define RTTEST_CHECK_MSG_RET(hTest, expr, DetailsArgs, rcRet)
#define RTTEST_CHECK_MSG_RETV(hTest, expr, DetailsArgs)
#define RTTEST_CHECK_RC(hTest, rcExpr, rcExpect)
#define RTTEST_CHECK_RC_OK(hTest, rcExpr)
#define RTTEST_CHECK_RC_OK_RET(hTest, rcExpr, rcRet)
#define RTTEST_CHECK_RC_OK_RETV(hTest, rcExpr)
#define RTTEST_CHECK_RC_RET(hTest, rcExpr, rcExpect, rcRet)
#define RTTEST_CHECK_RC_RETV(hTest, rcExpr, rcExpect)
#define RTTEST_CHECK_RET(hTest, expr, rcRet)
#define RTTEST_CHECK_RETV(hTest, expr)

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 phOldTest
PRTTEST phTest
size_t uint32_t bool void ** ppvUser
const char * pszReason
const char const char * pszSubTest
const char * pszSubTestFmt
void * pv


Generated by  Doxygen 1.6.0   Back to index