From 21fbee831e0eab2c2f4513825c939158f4578156 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 28 Sep 2018 08:43:37 -0400 Subject: [PATCH] [test-multithread] Take num-threads and num-iters from command-line --- test/api/test-multithread.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/api/test-multithread.c b/test/api/test-multithread.c index 898f19a0f..2dbecc9bf 100644 --- a/test/api/test-multithread.c +++ b/test/api/test-multithread.c @@ -134,6 +134,11 @@ test_body () int main (int argc, char **argv) { + if (argc > 1) + num_threads = atoi (argv[1]); + if (argc > 2) + num_iters = atoi (argv[2]); + // Dummy call to alleviate _guess_segment_properties thread safety-ness // https://github.com/harfbuzz/harfbuzz/issues/1191 hb_language_get_default ();