X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Fglslcompiler.cpp;h=fa6e588ef437d5e9f9455e0c3b8c3f91ce4f1281;hb=4414f0245005c8cfcd02b51ea394d612cc5776c4;hp=8ff630555557e1bf5a3b7f1d7b5e7ece23d33027;hpb=11bbe9f4961d5550de39f890eeac63f45a7d0295;p=libs%2Fgl.git 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) {