[geos-commits] r3469 - trunk/tests/unit/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Mon Sep 19 11:07:07 EDT 2011


Author: mloskot
Date: 2011-09-19 08:07:07 -0700 (Mon, 19 Sep 2011)
New Revision: 3469

Modified:
   trunk/tests/unit/capi/GEOSisValidDetailTest.cpp
Log:
Disable unit test relying on C99 feature if GEOS built using Visual C++

Modified: trunk/tests/unit/capi/GEOSisValidDetailTest.cpp
===================================================================
--- trunk/tests/unit/capi/GEOSisValidDetailTest.cpp	2011-09-17 15:53:01 UTC (rev 3468)
+++ trunk/tests/unit/capi/GEOSisValidDetailTest.cpp	2011-09-19 15:07:07 UTC (rev 3469)
@@ -102,12 +102,14 @@
     template<>
     void object::test<3>()
     {
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
       geom_ = GEOSGeomFromWKT("LINESTRING(0 0, 10 0, NaN -5)");
       ensure(0 != geom_);
       int r = GEOSisValidDetail(geom_, 0, &reason_, &loc_);
       ensure_equals(r, 0); // invalid
       ensure_equals(std::string(reason_), std::string("Invalid Coordinate"));
       ensure_equals(toWKT(loc_), "POINT (nan -5)");
+#endif
     }
 
     // Self intersecting ring forming hole



More information about the geos-commits mailing list