diff options
author | Automerge script <automerge@asterisk.org> | 2012-12-11 23:17:37 +0000 |
---|---|---|
committer | Automerge script <automerge@asterisk.org> | 2012-12-11 23:17:37 +0000 |
commit | 686cdd0e79b01bfaf130389a1a948b2dc3d5efb0 (patch) | |
tree | 6a4dc157ffdc6929341312be3c6e7ac2e4491e66 | |
parent | 817a78075ae77180cb05932a67a882ca198ccb25 (diff) |
Merged revisions 377906 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk
........
r377906 | mmichelson | 2012-12-11 16:42:11 -0600 (Tue, 11 Dec 2012) | 3 lines
Add test events necessary for bridging tests to be able to properly run.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/features.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/features.c b/main/features.c index 847b29ee6..12b89a12d 100644 --- a/main/features.c +++ b/main/features.c @@ -3616,6 +3616,10 @@ static int feature_interpret_helper(struct ast_channel *chan, struct ast_channel res = AST_FEATURE_RETURN_SUCCESS; /* We found something */ } else if (operation == FEATURE_INTERPRET_DO) { res = builtin_features[x].operation(chan, peer, config, code, sense, NULL); + ast_test_suite_event_notify("FEATURE_DETECTION", + "Result: success\r\n" + "Feature: %s", + builtin_features[x].sname); } if (feature) { memcpy(feature, &builtin_features[x], sizeof(*feature)); @@ -3628,6 +3632,12 @@ static int feature_interpret_helper(struct ast_channel *chan, struct ast_channel } } } + + if (operation == FEATURE_INTERPRET_CHECK && x == FEATURES_COUNT) { + ast_test_suite_event_notify("FEATURE_DETECTION", + "Result: fail"); + } + ast_rwlock_unlock(&features_lock); if (ast_strlen_zero(dynamic_features_buf) || feature_detected) { |