From aa65dfb1bc90fde199a3e7da488dbf637f75ba78 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 26 Jun 2019 19:06:52 -0400 Subject: [PATCH] Tests: Use only 2 threads for t_gantt. --- test_regress/t/t_gantt.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_regress/t/t_gantt.pl b/test_regress/t/t_gantt.pl index 6a6d44c78..f80bfacfd 100755 --- a/test_regress/t/t_gantt.pl +++ b/test_regress/t/t_gantt.pl @@ -20,7 +20,8 @@ scenarios(vltmt => 1); top_filename("t/t_gen_alw.v"); compile( - v_flags2 => ["--prof-threads"] + # Checks below care about thread count, so use 2 (minimum reasonable) + v_flags2 => ["--prof-threads --threads 2"] ); execute( @@ -62,7 +63,7 @@ my $global_mtask_ct = 0; if ($this_thread_mtask_ct % 2 != 0) { error("odd number of mtasks found"); } } } -if ($gantt_line_ct != 3) { error("wrong number of gantt lines"); } +if ($gantt_line_ct != 2) { error("wrong number of gantt lines"); } if ($global_mtask_ct == 0) { error("wrong number of mtasks, should be > 0"); } print "Found $gantt_line_ct lines of gantt data with $global_mtask_ct mtasks\n" if $Self->{verbose};