Test failure on thrown exception is already handled by the test framework.

This commit is contained in:
Matt Amos 2015-05-18 22:37:13 +01:00
parent 2bb50371ca
commit 26f233c505

View file

@ -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