[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:
@@ -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 testing
|
||||||
} // namespace impeller
|
} // namespace impeller
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user