void GlslCompilerTest::run_test_case(const TestCase *test_case)
{
GL::SL::Compiler compiler(GL::SL::Features::all());
- compiler.set_source(test_case->source, "<test>");
try
{
+ compiler.set_source(test_case->source, "<test>");
compiler.compile(GL::SL::Compiler::PROGRAM);
}
catch(const GL::SL::invalid_shader_source &exc)
++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)