From: Mikko Rasa Date: Fri, 5 Mar 2021 10:59:27 +0000 (+0200) Subject: Catch exceptions from parsing while testing the compiler X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=11bbe9f4961d5550de39f890eeac63f45a7d0295;p=libs%2Fgl.git Catch exceptions from parsing while testing the compiler --- diff --git a/tests/glsl/glslcompiler.cpp b/tests/glsl/glslcompiler.cpp index 7c5e6462..8ff63055 100644 --- a/tests/glsl/glslcompiler.cpp +++ b/tests/glsl/glslcompiler.cpp @@ -99,9 +99,9 @@ const GlslCompilerTest::TestCase &GlslCompilerTest::load_test_case(const string void GlslCompilerTest::run_test_case(const TestCase *test_case) { GL::SL::Compiler compiler(GL::SL::Features::all()); - compiler.set_source(test_case->source, ""); try { + compiler.set_source(test_case->source, ""); compiler.compile(GL::SL::Compiler::PROGRAM); } catch(const GL::SL::invalid_shader_source &exc)