Negative test for ExecutionMode.

This commit is contained in:
Dejan Mircevski 2015-10-09 14:29:07 -04:00 committed by David Neto
parent 865034263d
commit 725cc2a2df

View 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<