summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2020-01-08 16:49:57 +0200
committerJuha Alanen <juha.alanen@mapbox.com>2020-01-10 15:20:15 +0200
commitb6a6d83777024e1f835ad5bf1695b1c4a1ea7a34 (patch)
treeeac6c994f9b2352900615f6fd676b40e28b43879
parentf0f27d6d633acc67a2ebb59b8cbcb7075906e35a (diff)
downloadqtlocation-mapboxgl-b6a6d83777024e1f835ad5bf1695b1c4a1ea7a34.tar.gz
[test] Skip number-format expression tests on Android
-rw-r--r--test/style/expression/expression.test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/style/expression/expression.test.cpp b/test/style/expression/expression.test.cpp
index a289d7600b..bffadf1668 100644
--- a/test/style/expression/expression.test.cpp
+++ b/test/style/expression/expression.test.cpp
@@ -89,6 +89,12 @@ INSTANTIATE_TEST_CASE_P(Expression, ExpressionEqualityTest, ::testing::ValuesIn(
if (dir != nullptr) {
for (dirent *dp = nullptr; (dp = readdir(dir)) != nullptr;) {
const std::string name = dp->d_name;
+#if ANDROID
+ // Android unit test uses number-format stub implementation so skip the tests
+ if (name.find("number-format") != std::string::npos) {
+ continue;
+ }
+#endif
if (name.length() >= ending.length() && name.compare(name.length() - ending.length(), ending.length(), ending) == 0) {
names.push_back(name.substr(0, name.length() - ending.length()));
}