Go to the source code of this file.
|
#define | PAQA_INSTANTIATE_GLOBALS |
|
#define | ASSERT_TRUE(_exp) |
|
#define | ASSERT_AB(_a, _b, _op, _opn) |
|
#define | ASSERT_EQ(_a, _b) ASSERT_AB(_a, _b, ==, !=) |
|
#define | ASSERT_NE(_a, _b) ASSERT_AB(_a, _b, !=, ==) |
|
#define | ASSERT_GT(_a, _b) ASSERT_AB(_a, _b, >, <=) |
|
#define | ASSERT_GE(_a, _b) ASSERT_AB(_a, _b, >=, <) |
|
#define | ASSERT_LT(_a, _b) ASSERT_AB(_a, _b, <, >=) |
|
#define | ASSERT_LE(_a, _b) ASSERT_AB(_a, _b, <=, >) |
|
#define | HOPEFOR(_exp) |
|
#define | PAQA_PRINT_RESULT printf("QA Report: %d passed, %d failed.\n", paQaNumPassed, paQaNumFailed ) |
|
#define | PAQA_EXIT_RESULT (((paQaNumFailed > 0) || (paQaNumPassed == 0)) ? EXIT_FAILURE : EXIT_SUCCESS) |
|
#define ASSERT_AB |
( |
|
_a, |
|
|
|
_b, |
|
|
|
_op, |
|
|
|
_opn |
|
) |
| |
Value:do \
{ \
int mA = (int)(_a); \
int mB = (int)(_b); \
} \
else { \
printf("ERROR at %s:%d, (%s) %s (%s), %d %s %d\n", \
__FILE__, __LINE__, #_a, #_opn, #_b, mA, #_opn, mB );
\
goto error; \
} \
} while(0)
#define ASSERT_EQ |
( |
|
_a, |
|
|
|
_b |
|
) |
| ASSERT_AB(_a, _b, ==, !=) |
#define ASSERT_GE |
( |
|
_a, |
|
|
|
_b |
|
) |
| ASSERT_AB(_a, _b, >=, <) |
#define ASSERT_GT |
( |
|
_a, |
|
|
|
_b |
|
) |
| ASSERT_AB(_a, _b, >, <=) |
#define ASSERT_LE |
( |
|
_a, |
|
|
|
_b |
|
) |
| ASSERT_AB(_a, _b, <=, >) |
#define ASSERT_LT |
( |
|
_a, |
|
|
|
_b |
|
) |
| ASSERT_AB(_a, _b, <, >=) |
#define ASSERT_NE |
( |
|
_a, |
|
|
|
_b |
|
) |
| ASSERT_AB(_a, _b, !=, ==) |
#define ASSERT_TRUE |
( |
|
_exp | ) |
|
Value:do \
{ \
} \
else { \
printf("ERROR at %s:%d, (%s) not true\n", \
__FILE__, __LINE__, #_exp );
\
goto error; \
} \
} while(0)
Value:do \
{ \
} \
else { \
printf(
"\nERROR - 0x%x - %s for %s\n", result,
Pa_GetErrorText(result), #_exp );
\
} \
} while(0)
const char * Pa_GetErrorText(PaError errorCode)
Definition: pa_front.c:435
#define PAQA_INSTANTIATE_GLOBALS |
#define PAQA_PRINT_RESULT printf("QA Report: %d passed, %d failed.\n", paQaNumPassed, paQaNumFailed ) |