Tests: Fix file length issue (cousin of #3905)

This commit is contained in:
Wilson Snyder 2023-01-25 19:42:28 -05:00
parent 4a8cfe367d
commit 21aafe8f50
2 changed files with 5 additions and 15 deletions

View File

@ -26,21 +26,11 @@ if (!-r "$root/.git") {
$files =~ s/\s+/ /g;
my @batch;
my $n = 0;
my $re = qr/(FIX[M]E|BO[Z]O)/;
foreach my $file (split /\s+/, $files) {
$batch[$n] .= $file . " ";
++$n if (length($batch[$n]) > 10000);
}
foreach my $bfiles (@batch) {
my $cmd = "cd $root && grep -n -P '(FIX" . "ME|BO" . "ZO)' $bfiles | sort";
my $grep = `$cmd`;
if ($grep ne "") {
print "$grep\n";
foreach my $line (split /\n/, $grep) {
print "L $line\n";
# FIXMEV5 for use in develop-v5 branch until merged to master
$names{$1} = 1 if $line =~ /^([^:]+)/ && $line !~ /FIXMEV5/;
}
my $wholefile = file_contents($root . "/" . $file);
if ($wholefile =~ /$re/) {
$names{$file} = 1;
}
}
if (scalar(%names) >= 1) {

View File

@ -56,7 +56,7 @@ module chk (input clk, input rst_l, input expr);
wire noxs = ((expr ^ expr) == 1'b0);
// FIXMEV5: this test is dodgy, noxs can be proven constant, so this block
// TODO: this test is dodgy, noxs can be proven constant, so this block
// should never relly trigger...
reg hasx;
always @ (noxs) begin