From 3f9340114e490501e85583b55c77fc62dd8093f4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 5 Mar 2021 20:37:21 +0200 Subject: [PATCH] Check that errors were generated as expected --- tests/glsl/glslcompiler.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.45.2