mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] add test that demonstrates that VVL failures are fatal. (flutter/engine#51525)
Fixes https://github.com/flutter/flutter/issues/145118
This commit is contained in:
parent
3aa6229144
commit
c2ab3b470f
@ -2798,6 +2798,20 @@ TEST_P(EntityTest, FillPathGeometryGetPositionBufferReturnsExpectedMode) {
|
||||
}
|
||||
}
|
||||
|
||||
TEST_P(EntityTest, FailOnValidationError) {
|
||||
if (GetParam() != PlaygroundBackend::kVulkan) {
|
||||
GTEST_SKIP() << "Validation is only fatal on Vulkan backend.";
|
||||
}
|
||||
EXPECT_DEATH(
|
||||
// The easiest way to trigger a validation error is to try to compile
|
||||
// a shader with an unsupported pixel format.
|
||||
GetContentContext()->GetBlendColorBurnPipeline({
|
||||
.color_attachment_pixel_format = PixelFormat::kUnknown,
|
||||
.has_depth_stencil_attachments = false,
|
||||
}),
|
||||
"");
|
||||
}
|
||||
|
||||
} // namespace testing
|
||||
} // namespace impeller
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user