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

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)
const char uint64_t RTTESTUNIT enmUnit
RTTESTLVL const char * pszFormat
uint64_t RTTESTUNIT const char * pszNameFmt
const char uint64_t u64Value
RTTESTLVL const char va_list va
 RTR3DECL (uint32_t) RTTestErrorCount(RTTEST hTest)

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
}
enum  RTTESTUNIT {
  RTTESTUNIT_INVALID = 0, RTTESTUNIT_PCT, RTTESTUNIT_BYTES, RTTESTUNIT_BYTES_PER_SEC,
  RTTESTUNIT_KILOBYTES, RTTESTUNIT_KILOBYTES_PER_SEC, RTTESTUNIT_MEGABYTES, RTTESTUNIT_MEGABYTES_PER_SEC,
  RTTESTUNIT_PACKETS, RTTESTUNIT_PACKETS_PER_SEC, RTTESTUNIT_FRAMES, RTTESTUNIT_FRAMES_PER_SEC,
  RTTESTUNIT_OCCURRENCES, RTTESTUNIT_OCCURRENCES_PER_SEC, RTTESTUNIT_CALLS, RTTESTUNIT_CALLS_PER_SEC,
  RTTESTUNIT_ROUND_TRIP, RTTESTUNIT_SECS, RTTESTUNIT_MS, RTTESTUNIT_NS,
  RTTESTUNIT_NS_PER_CALL, RTTESTUNIT_NS_PER_FRAME, RTTESTUNIT_NS_PER_OCCURRENCE, RTTESTUNIT_NS_PER_PACKET,
  RTTESTUNIT_NS_PER_ROUND_TRIP, RTTESTUNIT_END
}

Functions

 RTR3DECL (void *) RTTestGuardedAllocTail(RTTEST hTest
 RTR3DECL (RTEXITCODE) RTTestInitAndCreate(const char *pszTest
 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 * pszName
const char * pszReasonFmt
const char const char * pszSubTest
const char * pszSubTestFmt
void * pv


Generated by  Doxygen 1.6.0   Back to index