diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-12-13 20:17:22 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-12-13 20:17:22 +0000 |
commit | de4a18d1aa51ef1a06b23dd650542d13ce4b92b4 (patch) | |
tree | 7d54d20990ef2db1cb6d7d1b4b174cc9e8988e69 | |
parent | 63b2c28c4b5410d3876f175c8ec0d24c121c7b36 (diff) |
test.c: Fix too sticky unit test failed status.
Rerunning a failed unit test after loading any required modules should
allow the test to report a pass status if it now passes.
........
Merged revisions 403782 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/test.c b/main/test.c index 94713e0e7..170bba658 100644 --- a/main/test.c +++ b/main/test.c @@ -250,6 +250,7 @@ static void test_execute(struct ast_test *test) test->state = AST_TEST_FAIL; goto exit; } + test->state = AST_TEST_NOT_RUN; result = test->cb(&test->info, TEST_EXECUTE, test); if (test->state != AST_TEST_FAIL) { test->state = result; |