aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-09 18:21:39 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-09 18:21:39 +0000
commit801b8efe65cbe386ba02ae0890a4803927f5c093 (patch)
treecc4f2d05a7ad7d668d53a2e7852f0b0158a55452 /apps
parent31e5c3865138c71c96ace1f04548cb0722cc6fb8 (diff)
Add some diagnostic feedback to our data tests
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275172 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_meetme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 831449ce6..77bd958bd 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -6860,23 +6860,27 @@ AST_TEST_DEFINE(test_meetme_data_provider)
chan = ast_channel_alloc(0, AST_STATE_DOWN, NULL, NULL, NULL, NULL, NULL, 0, 0, "MeetMeTest");
if (!chan) {
+ ast_test_status_update(test, "Channel allocation failed\n");
return AST_TEST_FAIL;
}
cnf = build_conf("9898", "", "1234", 1, 1, 1, chan);
if (!cnf) {
+ ast_test_status_update(test, "Build of test conference 9898 failed\n");
ast_hangup(chan);
return AST_TEST_FAIL;
}
node = ast_data_get(&query);
if (!node) {
+ ast_test_status_update(test, "Data query for test conference 9898 failed\n");
dispose_conf(cnf);
ast_hangup(chan);
return AST_TEST_FAIL;
}
if (strcmp(ast_data_retrieve_string(node, "meetme/confno"), "9898")) {
+ ast_test_status_update(test, "Query returned the wrong conference\n");
dispose_conf(cnf);
ast_hangup(chan);
ast_data_free(node);