From 725cc2a2dfa8416bdd294081dbc3a533c38d6852 Mon Sep 17 00:00:00 2001 From: Dejan Mircevski Date: Fri, 9 Oct 2015 14:29:07 -0400 Subject: [PATCH] Negative test for ExecutionMode. --- test/TextToBinary.ModeSetting.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/TextToBinary.ModeSetting.cpp b/test/TextToBinary.ModeSetting.cpp index 955ab31..e39fcb0 100644 --- a/test/TextToBinary.ModeSetting.cpp +++ b/test/TextToBinary.ModeSetting.cpp @@ -194,6 +194,11 @@ INSTANTIATE_TEST_CASE_P( })); #undef CASE +TEST_F(OpExecutionModeTest, WrongMode) { + EXPECT_THAT(CompileFailure("OpExecutionMode %1 xxyyzz"), + Eq("Invalid execution mode 'xxyyzz'.")); +} + // Test OpCapability using OpCapabilityTest = spvtest::TextToBinaryTestBase< -- 2.7.4