skip testShaperWithDiscoveredFont if discovery is not available

This commit is contained in:
Jacob Sandlund
2026-01-26 11:00:15 -05:00
parent 57f3973040
commit 44aa761733

View File

@@ -2108,6 +2108,7 @@ fn testShaperWithFont(alloc: Allocator, font_req: TestFont) !TestShaper {
}
fn testShaperWithDiscoveredFont(alloc: Allocator, font_req: [:0]const u8) !TestShaper {
if (font.Discover == void) return error.SkipZigTest;
var lib = try Library.init(alloc);
errdefer lib.deinit();