Test failure on thrown exception is already handled by the test framework.
This commit is contained in:
parent
2bb50371ca
commit
26f233c505
1 changed files with 38 additions and 44 deletions
|
@ -19,7 +19,6 @@ const std::string geojson("{ \"type\": \"Feature\", \"properties\": { }, \"geome
|
||||||
TEST_CASE("agg_rasterizer_integer_overflow") {
|
TEST_CASE("agg_rasterizer_integer_overflow") {
|
||||||
|
|
||||||
SECTION("coordinates_do_not_overflow_and_polygon_is_rendered") {
|
SECTION("coordinates_do_not_overflow_and_polygon_is_rendered") {
|
||||||
try {
|
|
||||||
auto expected_color = mapnik::color("white");
|
auto expected_color = mapnik::color("white");
|
||||||
|
|
||||||
mapnik::Map m(256,256);
|
mapnik::Map m(256,256);
|
||||||
|
@ -61,10 +60,5 @@ SECTION("coordinates_do_not_overflow_and_polygon_is_rendered") {
|
||||||
}
|
}
|
||||||
|
|
||||||
REQUIRE(im(128,128) == expected_color.rgba());
|
REQUIRE(im(128,128) == expected_color.rgba());
|
||||||
|
|
||||||
} catch (std::exception const &e) {
|
|
||||||
std::clog << e.what() << std::endl;
|
|
||||||
REQUIRE(false);
|
|
||||||
}
|
|
||||||
} // SECTION
|
} // SECTION
|
||||||
} // TEST_CASE
|
} // TEST_CASE
|
||||||
|
|
Loading…
Reference in a new issue