From 11bbe9f4961d5550de39f890eeac63f45a7d0295 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 5 Mar 2021 12:59:27 +0200 Subject: [PATCH] Catch exceptions from parsing while testing the compiler --- tests/glsl/glslcompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.43.0