14 #ifndef CLIPM_TESTLIB_BASE_H
15 #define CLIPM_TESTLIB_BASE_H
36 #if CLIPM_GET_INSTALLED_CPL_VERSION >= 4
38 #define clipm_testlib_call_testfunction(func) \
40 cpl_errorstate errstat = cpl_errorstate_get(); \
41 _clipm_testlib_call_testfunction( func, \
43 if (errstat != cpl_errorstate_get()) \
44 cpl_error_set_where(__func__); \
49 #define clipm_testlib_call_testfunction(func) \
50 _clipm_testlib_call_testfunction( func, \
64 #if CLIPM_GET_INSTALLED_CPL_VERSION >= 4
65 void clipm_testlib_errorstate_dump_one(
unsigned self,
74 __attribute__((format (printf, 1, 2)))
80 __attribute__((format (printf, 1, 2)))
86 __attribute__((format (printf, 1, 2)))
92 __attribute__((format (printf, 1, 2)))
void clipm_testlib_msg_debug(const char *format,...)
Display a debug message.
Definition: clipm_testlib_base.c:360
void clipm_testlib_msg_warning(const char *format,...)
Display a warning message.
Definition: clipm_testlib_base.c:316
void _clipm_testlib_call_testfunction(void(*testfunc)(void), const char *name)
Definition: clipm_testlib_base.c:373
int clipm_testlib_end(void)
Shuts down CPL and logging etc.
Definition: clipm_testlib_base.c:139
void clipm_testlib_init(int argc, char **argv)
Initializes CPL and message levels.
Definition: clipm_testlib_base.c:76
int clipm_testlib_is_verbose(void)
Return whether verbose mode is set.
Definition: clipm_testlib_base.c:278
void clipm_testlib_msg_info(const char *format,...)
Display an information message.
Definition: clipm_testlib_base.c:338
void clipm_testlib_msg_error(const char *format,...)
Display an error message.
Definition: clipm_testlib_base.c:294