From 20d1ab47f81fbcaec208dccefed344553aeb66f3 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 8 Oct 2007 14:57:11 +0000 Subject: r25580: Error out if there are no tests to run. (This used to be commit eddb663959b62a7170998f1ba0fad59967fcff67) --- source4/selftest/selftest.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4') 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; -- cgit