PostGIS  2.5.0dev-r@@SVN_REVISION@@
static void test_lwprint_assert_error ( char *  point_wkt,
const char *  format 
)
static

Definition at line 42 of file cu_print.c.

References cu_error_msg, cu_error_msg_reset(), LW_PARSER_CHECK_NONE, lwfree(), lwgeom_from_wkt(), lwpoint_free(), and lwpoint_to_latlon().

Referenced by test_lwprint_bad_formats().

43 {
44  LWPOINT * test_point = (LWPOINT*)lwgeom_from_wkt(point_wkt, LW_PARSER_CHECK_NONE);
46  char* tmp = lwpoint_to_latlon(test_point, format);
47  lwfree(tmp);
48  if (0 == strlen(cu_error_msg))
49  {
50  printf("\nAssert failed:\n\tFormat [%s] did not generate an error.\n", format);
51  CU_FAIL();
52  }
53  else
54  {
56  }
57  lwpoint_free(test_point);
58 }
void lwfree(void *mem)
Definition: lwutil.c:244
char * lwpoint_to_latlon(const LWPOINT *p, const char *format)
Definition: lwprint.c:424
void lwpoint_free(LWPOINT *pt)
Definition: lwpoint.c:213
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:1998
void cu_error_msg_reset()
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: