[test-multithread] Take num-threads and num-iters from command-line

This commit is contained in:
Behdad Esfahbod 2018-09-28 08:43:37 -04:00
parent 598be3bb38
commit 21fbee831e
1 changed files with 5 additions and 0 deletions

View File

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