From: David Vossel Date: Wed, 3 Mar 2010 00:04:28 +0000 (+0000) Subject: fixes assumption that test failed if it did not pass when generating results X-Git-Tag: 11.0.0-beta1~3343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b51d1d71d3911524c81bd9a73a3c228cc82f24b;p=thirdparty%2Fasterisk.git fixes assumption that test failed if it did not pass when generating results git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@250237 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/test.c b/main/test.c index 02cb32b944..4cf483b2b3 100644 --- a/main/test.c +++ b/main/test.c @@ -281,7 +281,7 @@ static int test_execute_multiple(const char *name, const char *category, struct last_results.last_time += test->time; if (test->state == AST_TEST_PASS) { last_results.last_passed++; - } else { + } else if (test->state == AST_TEST_FAIL) { last_results.last_failed++; }