r25580: Error out if there are no tests to run.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 8 Oct 2007 14:57:11 +0000 (14:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:07:59 +0000 (15:07 -0500)
(This used to be commit eddb663959b62a7170998f1ba0fad59967fcff67)

source4/selftest/selftest.pl

index 5e3f1e0987b5ecce15ff9a0f452d39a11a69ea15..a3671b4c89039d83bcedf79800da96bee8b62e01 100755 (executable)
@@ -586,6 +586,11 @@ foreach (@opt_testlists) {
        push(@todo, read_testlist($_));
 }
 
+if ($#todo == -1) {
+       print STDERR "No tests to run\n";
+       exit(1);
+       }
+
 my $suitestotal = $#todo + 1;
 my $i = 0;
 $| = 1;