X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=tests%2Fglsl%2Fglslcompiler.cpp;h=acca61d36a217e7bec5dcc572576209a5bfb3244;hp=fa6e588ef437d5e9f9455e0c3b8c3f91ce4f1281;hb=1cdd7023ea6fa85bcd28176c504d0feb98b61cae;hpb=ea82ccd16101e8e423fa66aebd581f1963567e8a 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))); }