Negative test for ExecutionMode.
authorDejan Mircevski <deki@google.com>
Fri, 9 Oct 2015 18:29:07 +0000 (14:29 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000 (12:55 -0400)
test/TextToBinary.ModeSetting.cpp

index 955ab31..e39fcb0 100644 (file)
@@ -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<