From: Mikko Rasa Date: Fri, 5 Mar 2021 18:37:21 +0000 (+0200) Subject: Check that errors were generated as expected X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=3f9340114e490501e85583b55c77fc62dd8093f4 Check that errors were generated as expected --- diff --git a/tests/glsl/glslcompiler.cpp b/tests/glsl/glslcompiler.cpp index 8ff63055..fa6e588e 100644 --- a/tests/glsl/glslcompiler.cpp +++ b/tests/glsl/glslcompiler.cpp @@ -116,6 +116,9 @@ void GlslCompilerTest::run_test_case(const TestCase *test_case) throw; } + if(!test_case->expected_error.empty()) + fail("Error expected but none thrown"); + auto stages = compiler.get_stages(); for(auto s: stages) {