[test] Fix failing tests on iOS

This commit is contained in:
Juha Alanen
2020-02-12 12:34:30 +02:00
parent ddc7930b27
commit a4c4de2828
5 changed files with 11 additions and 8 deletions

View File

@@ -91,6 +91,8 @@ TEST(VectorTileData, ParseResults) {
ASSERT_TRUE(false) << "should throw: feature index is out of range.";
} catch (const std::out_of_range&) {
ASSERT_TRUE(true);
} catch (...) { // needed for iOS when MBGL_WITH_RTTI=OFF
ASSERT_TRUE(true);
}
std::unique_ptr<GeometryTileFeature> feature = layer->getFeature(0u);