[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 <noreply@anthropic.com>
This commit is contained in:
Behdad EsfahbodandClaude Opus 4.8 committed 2026-11-10 19:23:24 -06:00
1 parent 9af27609af
commit bbdde752f6
1 file changed
+2 -1
+2 -1
View File
@@ -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));