PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void cu_error_reporter ( const char *  fmt,
va_list  ap 

CUnit error handler Log message in a global var instead of printing in stderr.

CAUTION: Not stop execution on rterror case !!!

This is a GNU extension. Dunno how to handle errors here.

Definition at line 212 of file raster/test/cunit/cu_tester.c.

References cu_error_msg, lw_vasprintf(), MAX_CUNIT_MSG_LENGTH, and rtdealloc().

Referenced by main().

212  {
213  char *msg;
218  if (!lw_vasprintf (&msg, fmt, ap)) {
219  va_end (ap);
220  return;
221  }
223  strncpy(cu_error_msg, msg, MAX_CUNIT_MSG_LENGTH);
224  rtdealloc(msg);
225 }
void rtdealloc(void *mem)
Definition: rt_api.c:882
tuple fmt
int lw_vasprintf(char **result, const char *format, va_list args)
Definition: vsprintf.c:148
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]

Here is the call graph for this function:

Here is the caller graph for this function: