From bbdde752f60fe7e088bb9051ceecf4bb49e6ef93 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 30 Oct 2026 17:10:21 -0600 Subject: [PATCH] [test] Force the ot shaper in the layout budget tests test_ot_layout_gpos_mark_base_rescan_budget calls hb_shape() with no shaper forced, then asserts an OT-specific max_ops trip via hb_buffer_allocation_successful(). Under the HarfRust shaper (HB_SHAPER_LIST=harfrust, as the rust CI job re-runs the api suite) it aborts, because harfrust shapes independently and never reaches the C-side max_ops paths it tests. Shape with hb_shape_full(..., {"ot", NULL}) so it exercises the OT shaper regardless of the configured shaper list, as test_shape_lookup_budget already does. Co-Authored-By: Claude Opus 4.8 --- test/api/test-ot-layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/api/test-ot-layout.c b/test/api/test-ot-layout.c index 22c1e3187..e67bcef90 100644 --- a/test/api/test-ot-layout.c +++ b/test/api/test-ot-layout.c @@ -488,7 +488,8 @@ test_ot_layout_gpos_mark_base_rescan_budget (void) hb_buffer_set_content_type (buffer, HB_BUFFER_CONTENT_TYPE_UNICODE); hb_buffer_guess_segment_properties (buffer); - hb_shape (font, buffer, NULL, 0); + const char *shaper_list[] = {"ot", NULL}; + hb_shape_full (font, buffer, NULL, 0, shaper_list); if (out_of_order) g_assert_true (!hb_buffer_allocation_successful (buffer));