Tests: Fix bison-dependent .out
This commit is contained in:
parent
0716a28816
commit
d33a3d09f7
|
|
@ -99,7 +99,6 @@ foreach my $s (
|
||||||
'Syntax error parsing real: \'',
|
'Syntax error parsing real: \'',
|
||||||
'Syntax error: \'virtual\' not allowed before var declaration',
|
'Syntax error: \'virtual\' not allowed before var declaration',
|
||||||
'This may be because there\'s no search path specified with -I<dir>.',
|
'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',
|
'Unexpected connection to arrayed port',
|
||||||
'Unhandled attribute type',
|
'Unhandled attribute type',
|
||||||
'Unknown Error Code: ',
|
'Unknown Error Code: ',
|
||||||
|
|
@ -243,7 +242,10 @@ sub read_messages {
|
||||||
|
|
||||||
sub read_outputs {
|
sub read_outputs {
|
||||||
file:
|
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")
|
my $fh = IO::File->new("<$filename")
|
||||||
or error("$! $filename");
|
or error("$! $filename");
|
||||||
while (my $line = ($fh && $fh->getline)) {
|
while (my $line = ($fh && $fh->getline)) {
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -13,7 +13,8 @@ scenarios(linter => 1);
|
||||||
lint(
|
lint(
|
||||||
verilator_flags2 => ["--lint-only --bbox-unsup"],
|
verilator_flags2 => ["--lint-only --bbox-unsup"],
|
||||||
fails => $Self->{vlt_all},
|
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);
|
ok(1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue