Tests: Fix bison-dependent .out

This commit is contained in:
Wilson Snyder 2022-10-22 14:35:36 -04:00
parent 0716a28816
commit d33a3d09f7
3 changed files with 6 additions and 6 deletions

View File

@ -99,7 +99,6 @@ foreach my $s (
'Syntax error parsing real: \'',
'Syntax error: \'virtual\' not allowed before var declaration',
'This may be because there\'s no search path specified with -I<dir>.',
'Thread scheduler is unable to provide requested ',
'Unexpected connection to arrayed port',
'Unhandled attribute type',
'Unknown Error Code: ',
@ -243,7 +242,10 @@ sub read_messages {
sub read_outputs {
file:
foreach my $filename (glob ("$root/test_regress/t/*.out $root/docs/gen/*.rst")) {
foreach my $filename (glob ("$root/test_regress/t/*.pl"
. " $root/test_regress/t/*.out"
. " $root/docs/gen/*.rst")) {
next if $filename =~ /t_dist_warn_coverage/; # Avoid our own suppressions
my $fh = IO::File->new("<$filename")
or error("$! $filename");
while (my $line = ($fh && $fh->getline)) {

View File

@ -1,3 +0,0 @@
%Error: t/t_udp_tableeof_bad.v:16:1: EOF in 'table'
%Error: t/t_udp_tableeof_bad.v:16:1: syntax error, unexpected end of file, expecting TABLE LINE or endtable
%Error: Cannot continue

View File

@ -13,7 +13,8 @@ scenarios(linter => 1);
lint(
verilator_flags2 => ["--lint-only --bbox-unsup"],
fails => $Self->{vlt_all},
expect_filename => $Self->{golden_filename},
# Cannot use .out, get "$end" or "end of file" depending on bison version
expect => qr/EOF in 'table'/,
);
ok(1);