summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource4/selftest/selftest.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/selftest/selftest.pl b/source4/selftest/selftest.pl
index 5e3f1e0987..a3671b4c89 100755
--- a/source4/selftest/selftest.pl
+++ b/source4/selftest/selftest.pl
@@ -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;