summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-12-11 11:58:46 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-12-12 12:37:55 +0100
commitfebfb7ac0965852ee224744bd33a3e3e5461ba80 (patch)
tree91c78a7d130cbbd0526d1c8e1bf4190e94a350af /test
parentf8ba23377d4377a6047f8cb9b28c8ce94a00e8f5 (diff)
downloadqtlocation-mapboxgl-febfb7ac0965852ee224744bd33a3e3e5461ba80.tar.gz
fix rendering errors
Diffstat (limited to 'test')
-rw-r--r--test/headless.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/headless.cpp b/test/headless.cpp
index 1c583a9c07..47afe1b67b 100644
--- a/test/headless.cpp
+++ b/test/headless.cpp
@@ -220,7 +220,7 @@ INSTANTIATE_TEST_CASE_P(Headless, HeadlessTest, ::testing::ValuesIn([] {
for (dirent *dp = nullptr; (dp = readdir(dir)) != nullptr;) {
const std::string name = dp->d_name;
- if (name != "." && name != ".." && name != "index.html") {
+ if (name != "index.html" && !(name.size() >= 1 && name[0] == '.')) {
names.push_back(name);
}
}