From 8519dc1383cabb5516a63be49de771b4b7db1e0c Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 4 Sep 2021 13:48:16 -0400 Subject: [PATCH] Tests: Skip unstability --- test_regress/t/t_gantt_io.pl | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/test_regress/t/t_gantt_io.pl b/test_regress/t/t_gantt_io.pl index 77137b081..864f45c00 100755 --- a/test_regress/t/t_gantt_io.pl +++ b/test_regress/t/t_gantt_io.pl @@ -10,13 +10,21 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di scenarios(dist => 1); -run(cmd => ["cd $Self->{obj_dir} && $ENV{VERILATOR_ROOT}/bin/verilator_gantt $Self->{t_dir}/t_gantt_io.dat > gantt.log"], - check_finished => 0); +if (1) { + skip("Skipping due to unstability with cpuinfo"); +} else { + check(); +} -files_identical("$Self->{obj_dir}/gantt.log", $Self->{golden_filename}); +sub check { + run(cmd => ["cd $Self->{obj_dir} && $ENV{VERILATOR_ROOT}/bin/verilator_gantt $Self->{t_dir}/t_gantt_io.dat > gantt.log"], + check_finished => 0); -vcd_identical("$Self->{obj_dir}/profile_threads.vcd", "$Self->{t_dir}/t_gantt_io_vcd.out"); + files_identical("$Self->{obj_dir}/gantt.log", $Self->{golden_filename}); -ok(1); + vcd_identical("$Self->{obj_dir}/profile_threads.vcd", "$Self->{t_dir}/t_gantt_io_vcd.out"); + + ok(1); +} 1;