mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
(spec_to_list): Warn about all filenames that exceed max-length before dying.
This commit is contained in:
@@ -120,11 +120,18 @@ sub spec_to_list ($$$)
|
||||
++$i;
|
||||
}
|
||||
|
||||
my $n_fail = 0;
|
||||
foreach $i (@explicit_file, @maint_gen_file)
|
||||
{
|
||||
die "$0: $i: generated test file name would be longer than 14 characters"
|
||||
if (length ($i) > 14);
|
||||
my $max_len = 14;
|
||||
if (length ($i) > $max_len)
|
||||
{
|
||||
warn "$0: $i: generated test file name would be longer than"
|
||||
. " $max_len characters\n";
|
||||
++$n_fail;
|
||||
}
|
||||
}
|
||||
exit (1) if $n_fail;
|
||||
|
||||
my %h = (
|
||||
EXPLICIT => \@explicit_file,
|
||||
|
||||
@@ -120,11 +120,18 @@ sub spec_to_list ($$$)
|
||||
++$i;
|
||||
}
|
||||
|
||||
my $n_fail = 0;
|
||||
foreach $i (@explicit_file, @maint_gen_file)
|
||||
{
|
||||
die "$0: $i: generated test file name would be longer than 14 characters"
|
||||
if (length ($i) > 14);
|
||||
my $max_len = 14;
|
||||
if (length ($i) > $max_len)
|
||||
{
|
||||
warn "$0: $i: generated test file name would be longer than"
|
||||
. " $max_len characters\n";
|
||||
++$n_fail;
|
||||
}
|
||||
}
|
||||
exit (1) if $n_fail;
|
||||
|
||||
my %h = (
|
||||
EXPLICIT => \@explicit_file,
|
||||
|
||||
@@ -120,11 +120,18 @@ sub spec_to_list ($$$)
|
||||
++$i;
|
||||
}
|
||||
|
||||
my $n_fail = 0;
|
||||
foreach $i (@explicit_file, @maint_gen_file)
|
||||
{
|
||||
die "$0: $i: generated test file name would be longer than 14 characters"
|
||||
if (length ($i) > 14);
|
||||
my $max_len = 14;
|
||||
if (length ($i) > $max_len)
|
||||
{
|
||||
warn "$0: $i: generated test file name would be longer than"
|
||||
. " $max_len characters\n";
|
||||
++$n_fail;
|
||||
}
|
||||
}
|
||||
exit (1) if $n_fail;
|
||||
|
||||
my %h = (
|
||||
EXPLICIT => \@explicit_file,
|
||||
|
||||
@@ -120,11 +120,18 @@ sub spec_to_list ($$$)
|
||||
++$i;
|
||||
}
|
||||
|
||||
my $n_fail = 0;
|
||||
foreach $i (@explicit_file, @maint_gen_file)
|
||||
{
|
||||
die "$0: $i: generated test file name would be longer than 14 characters"
|
||||
if (length ($i) > 14);
|
||||
my $max_len = 14;
|
||||
if (length ($i) > $max_len)
|
||||
{
|
||||
warn "$0: $i: generated test file name would be longer than"
|
||||
. " $max_len characters\n";
|
||||
++$n_fail;
|
||||
}
|
||||
}
|
||||
exit (1) if $n_fail;
|
||||
|
||||
my %h = (
|
||||
EXPLICIT => \@explicit_file,
|
||||
|
||||
Reference in New Issue
Block a user