summaryrefslogtreecommitdiff
path: root/main/test.c
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2010-03-03 00:04:28 +0000
committerDavid Vossel <dvossel@digium.com>2010-03-03 00:04:28 +0000
commit7b51d1d71d3911524c81bd9a73a3c228cc82f24b (patch)
treee5bed2617f5dd107c12073a6ab8a677beadd9ff4 /main/test.c
parent8429882ad85e6c8b4507ccbde02a922510f20045 (diff)
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
Diffstat (limited to 'main/test.c')
-rw-r--r--main/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/test.c b/main/test.c
index 02cb32b94..4cf483b2b 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++;
}