Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions impeller/entity/entity_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down