Searched refs:rcExpect (Results 1 - 5 of 5) sorted by relevance

/vbox/include/iprt/
H A Dtest.h738 * @param rcExpect The expected return code. This may be referenced
741 #define RTTEST_CHECK_RC(hTest, rcExpr, rcExpect) \
744 if (rcCheck != (rcExpect)) { \
745 RTTestFailed((hTest), "line %u: %s: expected %Rrc, got %Rrc", __LINE__, #rcExpr, (rcExpect), rcCheck); \
758 * @param rcExpect The expected return code. This may be referenced
762 #define RTTEST_CHECK_RC_RET(hTest, rcExpr, rcExpect, rcRet) \
765 if (rcCheck != (rcExpect)) { \
766 RTTestFailed((hTest), "line %u: %s: expected %Rrc, got %Rrc", __LINE__, #rcExpr, (rcExpect), rcCheck); \
778 * @param rcExpect The expected return code. This may be referenced
781 #define RTTEST_CHECK_RC_RETV(hTest, rcExpr, rcExpect) \
[all...]
/vbox/src/VBox/Runtime/testcase/
H A DtstRTR0MemUserKernel.cpp135 #define TEST_OFF_SIZE(off, size, rcExpect) \
139 if (rc != (rcExpect)) \
142 (off), (size), rc, (rcExpect)); \
146 if (rc != (rcExpect)) \
149 (off), (size), rc, (rcExpect)); \
H A DtstRTR0Common.h115 * @param rcExpect The expected result. Evaluated multiple times.
117 #define RTR0TESTR0_CHECK_RC(rcExpr, rcExpect) \
120 if (rcCheck != (rcExpect)) \
121 RTR0TestR0Error("line %u: %s: expected %Rrc, got %Rrc", __LINE__, #rcExpr, (rcExpect), rcCheck); \
127 #define RTR0TESTR0_CHECK_RC_BREAK(rcExpr, rcExpect) \
131 if (rcCheck != (rcExpect)) \
133 RTR0TestR0Error("line %u: %s: expected %Rrc, got %Rrc", __LINE__, #rcExpr, (rcExpect), rcCheck); \
H A DtstRTR0SemMutex.cpp72 #define CHECK_RC_BREAK(rc, rcExpect, szOp) \
73 if ((rc) != (rcExpect)) \
75 RTStrPrintf(pszErr, cchErr, "!%s -> %Rrc, expected %Rrc. line %u", szOp, rc, rcExpect, __LINE__); \
76 SUPR0Printf("%s -> %d, expected %d. line %u", szOp, rc, rcExpect, __LINE__); \
/vbox/src/VBox/VMM/VMMR3/
H A DVMMTests.cpp243 * @param rcExpect The expected result.
248 static int vmmR3DoTrapTest(PVM pVM, uint8_t u8Trap, unsigned uVariation, int rcExpect, uint32_t u32Eax, const char *pszFaultEIP, const char *pszDesc) argument
271 if (rc != rcExpect)
273 RTPrintf("VMM: FAILURE - rc=%Rrc expected %Rrc\n", rc, rcExpect);
277 else if ( rcExpect != VINF_SUCCESS
298 else if (rcExpect != VINF_SUCCESS)

Completed in 1171 milliseconds