Commit c38413f8 by Shahbaz Youssefi Committed by Commit Bot

Make glmark2 benchmark output parsing more resilient

On Linux, the following info messages are being output which are seemingly harmless: INFO: EGL CRITICAL: eglQueryString: display is not initialized. INFO: EGL ERROR: eglGetPlatformDisplayEXT: Bad platform type. These lines are now parsed and forwarded to output. Bug: angleproject:3139 Change-Id: Ia9feb2aef4c1809283588d6e5fc1b6a51ae8812b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2648641Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent f9afaaee
......@@ -15,6 +15,7 @@
#include "../perf_tests/third_party/perf/perf_result_reporter.h"
#include "ANGLEPerfTestArgs.h"
#include "common/platform.h"
#include "common/string_utils.h"
#include "common/system_utils.h"
#include "test_utils/angle_test_configs.h"
#include "test_utils/angle_test_instantiate.h"
......@@ -193,8 +194,13 @@ class GLMark2Benchmark : public testing::TestWithParam<GLMark2TestParams>
std::istringstream glmark2Output(output);
std::string line;
// Forward any INFO: lines that may have been generated.
while (std::getline(glmark2Output, line) && BeginsWith(line, "INFO:"))
{
fprintf(stderr, "%s\n", line.c_str());
}
// Expect ==== at the top of the header
std::getline(glmark2Output, line);
ASSERT_EQ('=', line[0]);
// Skip one line
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment