ifw-odp  2.0.0-alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
clipm_testlib_defines.h File Reference
#include <cpl.h>
#include <clipm_priv_error.h>
#include <clipm_compatibility_cpl.h>
#include <string.h>

Go to the source code of this file.

Macros

#define __file__   __FILE__
 
#define clipm_testlib_image_save_if_verbose_nr(image, descriptor, nr)
 
#define clipm_testlib_image_save_if_verbose(image, descriptor)
 
#define CLIPM_TRY_TESTLIB_ASSERT(CONDITION)
 
#define CLIPM_TRY_TESTLIB_ASSERT_ZERO(VALUE, TOLERANCE)
 
#define clipm_testlib_expected_message(EXPECTED, GOT_CODE)
 
#define CLIPM_TRY_TESTLIB_CHECK_RETURN_ERROR_AND_RECOVER(FUNC, CODE, OTHER_CONDITION)
 
#define CLIPM_TRY_TESTLIB_DONT_CHECK(CODE)
 

Macro Definition Documentation

#define __file__   __FILE__
#define clipm_testlib_expected_message (   EXPECTED,
  GOT_CODE 
)
Value:
do { \
"-> expected error %d,", \
EXPECTED); \
" got error %d,", \
GOT_CODE); \
" in %s: line %d", \
__func__, \
__LINE__); \
} while (0)
void clipm_testlib_msg_error(const char *format,...)
Display an error message.
Definition: clipm_testlib_base.c:294
#define clipm_testlib_image_save_if_verbose (   image,
  descriptor 
)
Value:
do { \
__func__, \
descriptor, \
-1); \
} while (0)
cpl_error_code _clipm_testlib_image_save_if_verbose(const cpl_image *img, const char *func, const char *identifier, int nr)
Write an image to disk and print a message.
Definition: clipm_testlib_tools.c:1151
#define clipm_testlib_image_save_if_verbose_nr (   image,
  descriptor,
  nr 
)
Value:
do { \
__func__, \
descriptor, \
nr); \
} while (0)
cpl_error_code _clipm_testlib_image_save_if_verbose(const cpl_image *img, const char *func, const char *identifier, int nr)
Write an image to disk and print a message.
Definition: clipm_testlib_tools.c:1151
#define CLIPM_TRY_TESTLIB_ASSERT (   CONDITION)
Value:
do { \
if (!(CONDITION)) \
{ \
"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)
void clipm_testlib_msg_debug(const char *format,...)
Display a debug message.
Definition: clipm_testlib_base.c:360
#define CLIPM_TRY_EXIT_WITH_ERROR(code)
Set a new CPL error, and exit the try-block.
Definition: clipm_priv_error.h:423
void clipm_testlib_msg_error(const char *format,...)
Display an error message.
Definition: clipm_testlib_base.c:294
#define CLIPM_TRY_TESTLIB_ASSERT_ZERO (   VALUE,
  TOLERANCE 
)
#define CLIPM_TRY_TESTLIB_CHECK_RETURN_ERROR_AND_RECOVER (   FUNC,
  CODE,
  OTHER_CONDITION 
)
#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