[test/hb-shape-threads] Silence hb_language_get_default() threadysafety issue

This commit is contained in:
Behdad Esfahbod 2022-05-30 05:34:25 -06:00
parent 4e59900ff5
commit b010962c3b
1 changed files with 4 additions and 0 deletions

View File

@ -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;