summaryrefslogtreecommitdiff
path: root/render-test/runner.cpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-10-11 14:06:02 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-10-21 16:10:45 +0300
commitb0976feca26769261ee824688d6fae78298ae0da (patch)
treec949f823b3c03731b4ba6b8f3e55daf6aaec4bc2 /render-test/runner.cpp
parent9adc78134c261d5e236faac3b537e1cfd937880a (diff)
downloadqtlocation-mapboxgl-b0976feca26769261ee824688d6fae78298ae0da.tar.gz
[test runner] Tests for memory size metrics
Diffstat (limited to 'render-test/runner.cpp')
-rw-r--r--render-test/runner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/render-test/runner.cpp b/render-test/runner.cpp
index 925599dfb8..401b060fd6 100644
--- a/render-test/runner.cpp
+++ b/render-test/runner.cpp
@@ -292,7 +292,7 @@ bool TestRunner::checkRenderTestResults(mbgl::PremultipliedImage&& actualImage,
if (!passed) {
std::stringstream ss;
ss << "Number of allocations at probe \"" << expected.first << "\" is " << actual->second.allocations
- << ", expected is " << expected.second.allocations << "±" << delta << " allocations.";
+ << ", expected is " << expected.second.allocations << "±" << std::round(delta) << " allocations.";
metadata.errorMessage = ss.str();
return false;