From 1cdd7023ea6fa85bcd28176c504d0feb98b61cae Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 8 Mar 2021 02:49:03 +0200 Subject: [PATCH] Check for extra error lines in compiler output Somehow I thought this was handled already --- tests/glsl/glslcompiler.cpp | 2 ++ 1 file changed, 2 insertions(+) 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))); } -- 2.43.0