| 69 | "SPV_KHR_shader_ballot_ERROR")); |
| 70 | |
| 71 | TEST_P(ValidateKnownExtensions, ExpectSuccess) { |
| 72 | const std::string extension = GetParam(); |
| 73 | const std::string str = |
| 74 | "OpCapability Shader\nOpCapability Linkage\nOpExtension \"" + extension + |
| 75 | "\"\nOpMemoryModel Logical GLSL450"; |
| 76 | CompileSuccessfully(str.c_str()); |
| 77 | ASSERT_EQ(SPV_SUCCESS, ValidateInstructions()); |
| 78 | EXPECT_THAT(getDiagnosticString(), Not(HasSubstr(GetErrorString(extension)))); |
| 79 | } |
| 80 | |
| 81 | TEST_P(ValidateUnknownExtensions, FailSilently) { |
| 82 | const std::string extension = GetParam(); |
nothing calls this directly
no test coverage detected