[test runner] Tests for memory size metrics

This commit is contained in:
Mikhail Pozdnyakov
2019-10-11 14:06:02 +03:00
parent 9adc78134c
commit b0976feca2
11 changed files with 163 additions and 2 deletions

View File

@@ -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;