]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/glslcompiler.cpp
Check for missing lines in error output
[libs/gl.git] / tests / glsl / glslcompiler.cpp
index 70ccf3b200f733504d89583396e1fb9594c3d9d8..7c5e646283c25cfcbbbc8e705e4c958b0c22c6f9 100644 (file)
@@ -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)