From: Mikko Rasa Date: Thu, 4 Mar 2021 14:50:57 +0000 (+0200) Subject: Check for missing lines in error output X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2dec8ba3f45ff2dfa3144e63c67d673e79a58b3b;p=libs%2Fgl.git Check for missing lines in error output --- 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)