#include <cpl.h>
#include <clipm_priv_error.h>
#include <clipm_compatibility_cpl.h>
#include <string.h>
Go to the source code of this file.
◆ __file__
#define __file__ __FILE__ |
◆ clipm_testlib_expected_message
#define clipm_testlib_expected_message |
( |
|
EXPECTED, |
|
|
|
GOT_CODE |
|
) |
| |
Value: do { \
clipm_testlib_msg_error( \
"-> expected error %d,", \
EXPECTED); \
clipm_testlib_msg_error( \
" got error %d,", \
GOT_CODE); \
clipm_testlib_msg_error( \
" in %s: line %d", \
__func__, \
__LINE__); \
} while (0)
◆ clipm_testlib_image_save_if_verbose
#define clipm_testlib_image_save_if_verbose |
( |
|
image, |
|
|
|
descriptor |
|
) |
| |
Value:do { \
_clipm_testlib_image_save_if_verbose( image, \
__func__, \
descriptor, \
-1); \
} while (0)
◆ clipm_testlib_image_save_if_verbose_nr
#define clipm_testlib_image_save_if_verbose_nr |
( |
|
image, |
|
|
|
descriptor, |
|
|
|
nr |
|
) |
| |
Value:do { \
_clipm_testlib_image_save_if_verbose( image, \
__func__, \
descriptor, \
nr); \
} while (0)
◆ CLIPM_TRY_TESTLIB_ASSERT
#define CLIPM_TRY_TESTLIB_ASSERT |
( |
|
CONDITION | ) |
|
Value:do { \
if (!(CONDITION)) \
{ \
clipm_testlib_msg_error( \
"Not fulfilling condition \"%s\"", #CONDITION); \
CLIPM_TRY_EXIT_WITH_ERROR( CPL_ERROR_ILLEGAL_OUTPUT); \
} \
else \
{ \
cpl_msg_indent_more(); \
clipm_testlib_msg_debug("Assert: "#CONDITION); \
cpl_msg_indent_less(); \
} \
} while (0)
◆ CLIPM_TRY_TESTLIB_ASSERT_ZERO
#define CLIPM_TRY_TESTLIB_ASSERT_ZERO |
( |
|
VALUE, |
|
|
|
TOLERANCE |
|
) |
| |
◆ CLIPM_TRY_TESTLIB_CHECK_RETURN_ERROR_AND_RECOVER
#define CLIPM_TRY_TESTLIB_CHECK_RETURN_ERROR_AND_RECOVER |
( |
|
FUNC, |
|
|
|
CODE, |
|
|
|
OTHER_CONDITION |
|
) |
| |
◆ CLIPM_TRY_TESTLIB_DONT_CHECK
#define CLIPM_TRY_TESTLIB_DONT_CHECK |
( |
|
CODE | ) |
|
Value:
"Note: check for error code %d not implemented/possible", \
(CODE));
void clipm_testlib_msg_info(const char *format,...)
Display an information message.
Definition: clipm_testlib_base.c:338