summaryrefslogtreecommitdiff
path: root/test/src/mbgl
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/mbgl')
-rw-r--r--test/src/mbgl/test/test.cpp4
-rw-r--r--test/src/mbgl/test/util.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/test/src/mbgl/test/test.cpp b/test/src/mbgl/test/test.cpp
index 4c3dad1727..fc1e860798 100644
--- a/test/src/mbgl/test/test.cpp
+++ b/test/src/mbgl/test/test.cpp
@@ -6,12 +6,12 @@
namespace mbgl {
int runTests(int argc, char *argv[]) {
-#if TEST_HAS_SERVER
+#if TEST_HAS_SERVER // NOLINT
auto server = std::make_unique<test::Server>("test/storage/server.js");
#endif
testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
+ return RUN_ALL_TESTS(); // NOLINT
}
} // namespace mbgl
diff --git a/test/src/mbgl/test/util.cpp b/test/src/mbgl/test/util.cpp
index 7ca2d72504..d49a6a6f9f 100644
--- a/test/src/mbgl/test/util.cpp
+++ b/test/src/mbgl/test/util.cpp
@@ -121,7 +121,7 @@ void checkImage(const std::string& base,
const PremultipliedImage& actual,
double imageThreshold,
double pixelThreshold) {
-#if !TEST_READ_ONLY
+#if !TEST_READ_ONLY // NOLINT
if (getenv("UPDATE")) {
util::write_file(base + "/expected.png", encodePNG(actual));
return;
@@ -141,7 +141,7 @@ void checkImage(const std::string& base,
PremultipliedImage diff { expected.size };
-#if !TEST_READ_ONLY
+#if !TEST_READ_ONLY // NOLINT
util::write_file(base + "/actual.png", encodePNG(actual));
#endif
@@ -156,7 +156,7 @@ void checkImage(const std::string& base,
EXPECT_LE(pixels / (expected.size.width * expected.size.height), imageThreshold);
-#if !TEST_READ_ONLY
+#if !TEST_READ_ONLY // NOLINT
util::write_file(base + "/diff.png", encodePNG(diff));
#endif
}