summaryrefslogtreecommitdiff
path: root/render-test/runner.cpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-10-11 14:33:52 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-10-21 16:10:45 +0300
commit8bdd8ec67058b0290d56d4b0b6b01ab84e4c2006 (patch)
tree855bf283dcc3d99c21d52ea6fa83183887e65417 /render-test/runner.cpp
parentb0976feca26769261ee824688d6fae78298ae0da (diff)
downloadqtlocation-mapboxgl-8bdd8ec67058b0290d56d4b0b6b01ab84e4c2006.tar.gz
[test runner] Disable memory metrics checks on sanitize builds
Diffstat (limited to 'render-test/runner.cpp')
-rw-r--r--render-test/runner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/render-test/runner.cpp b/render-test/runner.cpp
index 401b060fd6..651361994a 100644
--- a/render-test/runner.cpp
+++ b/render-test/runner.cpp
@@ -269,6 +269,7 @@ bool TestRunner::checkRenderTestResults(mbgl::PremultipliedImage&& actualImage,
return false;
}
}
+#if !defined(SANITIZE)
// Check memory metrics.
for (const auto& expected : metadata.expectedMetrics.memory) {
auto actual = metadata.metrics.memory.find(expected.first);
@@ -327,7 +328,7 @@ bool TestRunner::checkRenderTestResults(mbgl::PremultipliedImage&& actualImage,
return false;
}
}
-
+#endif // !defined(SANITIZE)
return true;
}