From 3219ffddd47bcc91da183fb152de129bd64d0418 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 1 Apr 2023 18:17:45 -0400 Subject: [PATCH] Tests: Ignore commented out messages --- test_regress/t/t_dist_warn_coverage.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_regress/t/t_dist_warn_coverage.pl b/test_regress/t/t_dist_warn_coverage.pl index 349fd4737..4646bb95e 100755 --- a/test_regress/t/t_dist_warn_coverage.pl +++ b/test_regress/t/t_dist_warn_coverage.pl @@ -31,7 +31,6 @@ foreach my $s ( 'dynamic new() not expected in this context (expected under an assign)', # Instead get syntax error # Not yet analyzed ' is not an in/out/inout/param/interface: ', - 'Descending instance range connecting to ', ' loading non-variable', '--pipe-filter protocol error, unexpected: ', '/*verilator sformat*/ can only be applied to last argument of ', @@ -177,6 +176,7 @@ sub read_messages { line: while (my $origline = ($fh && $fh->getline)) { my $line = $origline; + next if $line =~ m!^\s*//!; ++$lineno; if ($line =~ /\b(v3error|v3warn)\b\($/g) { $read_next = 1 if $line !~ /LCOV_EXCL_LINE/;