]> git.tdb.fi Git - libs/gl.git/commitdiff
Check for missing lines in error output
authorMikko Rasa <tdb@tdb.fi>
Thu, 4 Mar 2021 14:50:57 +0000 (16:50 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 4 Mar 2021 15:46:43 +0000 (17:46 +0200)
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)