[postgis-tickets] r14397 - Show actual location of wkt test

Sandro Santilli strk at keybit.net
Mon Nov 16 08:29:50 PST 2015


Author: strk
Date: 2015-11-16 08:29:50 -0800 (Mon, 16 Nov 2015)
New Revision: 14397

Modified:
   branches/2.1/liblwgeom/cunit/cu_in_wkt.c
Log:
Show actual location of wkt test

Modified: branches/2.1/liblwgeom/cunit/cu_in_wkt.c
===================================================================
--- branches/2.1/liblwgeom/cunit/cu_in_wkt.c	2015-11-16 15:57:53 UTC (rev 14396)
+++ branches/2.1/liblwgeom/cunit/cu_in_wkt.c	2015-11-16 16:29:50 UTC (rev 14397)
@@ -335,10 +335,12 @@
 	wkt = "LINESTRING((0 0 0,1 1)";
 	lwgeom_parser_result_init(&p);
 	rv = lwgeom_parse_wkt(&p, wkt, LW_PARSER_CHECK_ALL);
+	if ( fabs(12 - p.errlocation) >= 1.5 ) {
+		printf("Unexpected errlocation: %d\n", p.errlocation);
+		printf(" message: %s\n", p.message);
+	}
 	CU_ASSERT(fabs(12 - p.errlocation) < 1.5);
 
-//	printf("errlocation %d\n", p.errlocation);
-//	printf("message %s\n", p.message);
 
 	lwgeom_parser_result_free(&p);
 



More information about the postgis-tickets mailing list