From: Mikko Rasa Date: Mon, 8 Mar 2021 00:49:03 +0000 (+0200) Subject: Check for extra error lines in compiler output X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1cdd7023ea6fa85bcd28176c504d0feb98b61cae;p=libs%2Fgl.git Check for extra error lines in compiler output Somehow I thought this was handled already --- diff --git a/tests/glsl/glslcompiler.cpp b/tests/glsl/glslcompiler.cpp index fa6e588e..acca61d3 100644 --- a/tests/glsl/glslcompiler.cpp +++ b/tests/glsl/glslcompiler.cpp @@ -201,6 +201,8 @@ void GlslCompilerTest::verify_error(const string &output, const string &expected while(j!=expected.end() && isspace(*j)) ++j; + if(i!=output.end()) + fail(format("Extra error line: %s", extract_line(output, i))); if(j!=expected.end()) fail(format("Missing error line: %s", extract_line(expected, j))); }