From c3eac5c0f345ffd2fa99f6ddbb9bbc49aebe4932 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 8 Mar 2025 11:54:15 -0700 Subject: [PATCH] [test-threads] Test all font-funcs Fontations & Coretext are new and seems to pass. --- test/api/test-multithread.c | 5 ++--- test/threads/hb-shape-threads.cc | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/api/test-multithread.c b/test/api/test-multithread.c index f846416cf..52f7cefb9 100644 --- a/test/api/test-multithread.c +++ b/test/api/test-multithread.c @@ -148,9 +148,8 @@ main (int argc, char **argv) ref_buffer = hb_buffer_create (); fill_the_buffer (ref_buffer); - // TODO Test all backends - test_body ("ot"); - test_body ("ft"); + for (const char **font_funcs = hb_font_list_funcs (); *font_funcs; font_funcs++) + test_body (*font_funcs); hb_buffer_destroy (ref_buffer); diff --git a/test/threads/hb-shape-threads.cc b/test/threads/hb-shape-threads.cc index d72352e8a..a99f4ab04 100644 --- a/test/threads/hb-shape-threads.cc +++ b/test/threads/hb-shape-threads.cc @@ -183,9 +183,8 @@ int main(int argc, char** argv) { bool is_var = (bool) variable; - // TODO Test all backends. - test_backend ("ot", is_var, test_input); - test_backend ("ft", is_var, test_input); + for (const char **font_funcs = hb_font_list_funcs (); *font_funcs; font_funcs++) + test_backend (*font_funcs, is_var, test_input); } }