warn if boost is too old to run tests
This commit is contained in:
parent
64f2628488
commit
b7a54f3f09
2 changed files with 11 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "catch.hpp"
|
||||
|
||||
#include <boost/version.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_adapters.hpp>
|
||||
#include <mapnik/geometry_is_simple.hpp>
|
||||
|
@ -308,6 +309,12 @@ SECTION("multi polygon empty") {
|
|||
CHECK( mapnik::geometry::is_simple(mp) );
|
||||
}
|
||||
|
||||
#endif // BOOST_VERSION >= 1.56
|
||||
#else // BOOST_VERSION >= 1.58
|
||||
|
||||
SECTION("skipped is_simple tests") {
|
||||
WARN( "geometry simple tests disabled due to boost version older that 1.58 used" );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
|
|
@ -113,7 +113,9 @@ SECTION("wkb") {
|
|||
mapnik::wkbGeneric);
|
||||
REQUIRE(geom.is<mapnik::geometry::geometry_empty>()); // returns geometry_empty
|
||||
|
||||
} catch (std::exception const& ex) {
|
||||
}
|
||||
catch (std::exception const& ex)
|
||||
{
|
||||
REQUIRE(false);
|
||||
std::clog << "threw: " << ex.what() << "\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue