From 62f55b33949783a178dee9a36895c3423bdd625d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 3 Jan 2007 13:24:24 +0000 Subject: [PATCH] r20509: Warn about the fact that no tests have been run rather than showing division by zero errors. --- source/script/subunit-summary | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/script/subunit-summary b/source/script/subunit-summary index f407e200608..aec50ed02a6 100755 --- a/source/script/subunit-summary +++ b/source/script/subunit-summary @@ -57,6 +57,11 @@ while() { print "\n" if ($opt_progress); +if ($numtests == 0) { + print "No tests run\n"; + exit(0); +} + printf("%d%%: %d tests, %d succeeded, %d failed, %d skipped\n", ($numsuccess / $numtests * 100), $numtests, -- 2.11.4.GIT