From f789ddbdda824c96a128bfaec0c1b2c67b3d2c78 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 15 Dec 1996 22:17:29 +0000 Subject: . --- tests/ls/mk-script.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/ls') diff --git a/tests/ls/mk-script.pl b/tests/ls/mk-script.pl index bcff12cc6..0a8778512 100644 --- a/tests/ls/mk-script.pl +++ b/tests/ls/mk-script.pl @@ -52,7 +52,8 @@ sub spec_to_list ($$$) my $file_contents; foreach $file_contents (@content_string) { - my $gen_file = "t$test_name.$type$i"; + my $suffix = (@content_string > 1 ? $i : ''); + my $gen_file = "t$test_name.$type$suffix"; push (@all_file, $gen_file); push (@gen_file, $gen_file); open (F, ">$gen_file") || die "$0: $gen_file: $!\n"; -- cgit v1.2.3-70-g09d2