From 2dec8ba3f45ff2dfa3144e63c67d673e79a58b3b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 4 Mar 2021 16:50:57 +0200 Subject: [PATCH] Check for missing lines in error output --- tests/glsl/glslcompiler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/glsl/glslcompiler.cpp b/tests/glsl/glslcompiler.cpp index 70ccf3b2..7c5e6462 100644 --- a/tests/glsl/glslcompiler.cpp +++ b/tests/glsl/glslcompiler.cpp @@ -197,6 +197,9 @@ void GlslCompilerTest::verify_error(const string &output, const string &expected ++i; while(j!=expected.end() && isspace(*j)) ++j; + + if(j!=expected.end()) + fail(format("Missing error line: %s", extract_line(expected, j))); } string GlslCompilerTest::extract_line(const string &text, const string::const_iterator &iter) -- 2.45.2