summaryrefslogtreecommitdiff
path: root/tests/ls
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-30 03:31:40 +0000
committerJim Meyering <jim@meyering.net>1997-01-30 03:31:40 +0000
commit4cbcb32a533fafe82f213f4d2eaaea5bd8820a67 (patch)
treec22533dfb3b188762d93309b889d70cc16f046ba /tests/ls
parent13a5e426f36a81d834fc5d7d0fe53db7a9d4909e (diff)
downloadcoreutils-4cbcb32a533fafe82f213f4d2eaaea5bd8820a67.tar.xz
correctly compute number of tests
Diffstat (limited to 'tests/ls')
-rw-r--r--tests/ls/mk-script.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ls/mk-script.pl b/tests/ls/mk-script.pl
index 74275c096..48b4b1db6 100644
--- a/tests/ls/mk-script.pl
+++ b/tests/ls/mk-script.pl
@@ -220,6 +220,7 @@ EOF1
validate ();
+ my $n_tests = 0;
my $test_vector;
foreach $test_vector (Test::test_vector ())
{
@@ -285,6 +286,7 @@ EOF1
$msg = "($msg)" if $msg;
my $t_name = "$test_name$msg";
my $e_cmd = ($e ? "$e " : '');
+ ++$n_tests;
print <<EOF;
$e_cmd$cmd
code=\$?
@@ -307,7 +309,6 @@ EOF
}
}
}
- my $n_tests = Test::test_vector ();
print <<EOF3 ;
if test \$errors = 0 ; then
\$echo Passed all $n_tests tests. 1>&2