From b010962c3b9901e9b7a68d20c2ab5acb1653c925 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 30 May 2022 05:34:25 -0600 Subject: [PATCH] [test/hb-shape-threads] Silence hb_language_get_default() threadysafety issue --- test/threads/hb-shape-threads.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/threads/hb-shape-threads.cc b/test/threads/hb-shape-threads.cc index b59a390a1..b2b6767db 100644 --- a/test/threads/hb-shape-threads.cc +++ b/test/threads/hb-shape-threads.cc @@ -184,6 +184,10 @@ int main(int argc, char** argv) if (argc > 2) num_repetitions = atoi (argv[2]); + /* Dummy call to alleviate _guess_segment_properties thread safety-ness + * https://github.com/harfbuzz/harfbuzz/issues/1191 */ + hb_language_get_default (); + if (argc > 4) { num_tests = (argc - 3) / 2;