Fix more dev-mode build issues

........

Merged revisions 419129 from http://svn.asterisk.org/svn/asterisk/branches/1.8


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@419162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kinsey Moore
2014-07-22 14:00:33 +00:00
parent bfc6904871
commit 22b9d0ddff
15 changed files with 72 additions and 63 deletions

View File

@@ -66,7 +66,7 @@ static int check_event(struct ast_event *event, struct ast_test *test,
/* Check #1: Ensure event type is set properly. */
type = ast_event_get_type(event);
if (ast_event_get_type(event) != type) {
ast_test_status_update(test, "Expected event type: '%d', got '%d'\n",
ast_test_status_update(test, "Expected event type: '%u', got '%u'\n",
expected_type, type);
return -1;
}
@@ -343,7 +343,7 @@ AST_TEST_DEFINE(event_sub_test)
sub_res = ast_event_check_subscriber(AST_EVENT_CUSTOM,
AST_EVENT_IE_END);
if (sub_res != AST_EVENT_SUB_NONE) {
ast_test_status_update(test, "CUSTOM subscriptions should not exist! (%d)\n",
ast_test_status_update(test, "CUSTOM subscriptions should not exist! (%u)\n",
sub_res);
res = AST_TEST_FAIL;
}
@@ -376,7 +376,7 @@ AST_TEST_DEFINE(event_sub_test)
sub_res = ast_event_check_subscriber(AST_EVENT_CUSTOM,
AST_EVENT_IE_END);
if (sub_res != AST_EVENT_SUB_EXISTS) {
ast_test_status_update(test, "A CUSTOM subscription should exist! (%d)\n",
ast_test_status_update(test, "A CUSTOM subscription should exist! (%u)\n",
sub_res);
res = AST_TEST_FAIL;
}
@@ -623,7 +623,7 @@ AST_TEST_DEFINE(event_sub_test)
AST_EVENT_IE_DEVICE, AST_EVENT_IE_PLTYPE_STR, "Money",
AST_EVENT_IE_END);
if (sub_res != AST_EVENT_SUB_NONE) {
ast_test_status_update(test, "Str Money subscription should not exist! (%d)\n",
ast_test_status_update(test, "Str Money subscription should not exist! (%u)\n",
sub_res);
res = AST_TEST_FAIL;
}
@@ -641,7 +641,7 @@ AST_TEST_DEFINE(event_sub_test)
AST_EVENT_IE_MAILBOX, AST_EVENT_IE_PLTYPE_RAW, "FOO/bar", sizeof("FOO/bar") - 1,
AST_EVENT_IE_END);
if (sub_res != AST_EVENT_SUB_NONE) {
ast_test_status_update(test, "Raw FOO/bar-1 subscription should not exist! (%d)\n",
ast_test_status_update(test, "Raw FOO/bar-1 subscription should not exist! (%u)\n",
sub_res);
res = AST_TEST_FAIL;
}
@@ -650,7 +650,7 @@ AST_TEST_DEFINE(event_sub_test)
AST_EVENT_IE_MAILBOX, AST_EVENT_IE_PLTYPE_RAW, "Monkeys", sizeof("Monkeys"),
AST_EVENT_IE_END);
if (sub_res != AST_EVENT_SUB_NONE) {
ast_test_status_update(test, "Raw Monkeys subscription should not exist! (%d)\n",
ast_test_status_update(test, "Raw Monkeys subscription should not exist! (%u)\n",
sub_res);
res = AST_TEST_FAIL;
}
@@ -668,7 +668,7 @@ AST_TEST_DEFINE(event_sub_test)
AST_EVENT_IE_NEWMSGS, AST_EVENT_IE_PLTYPE_UINT, 1,
AST_EVENT_IE_END);
if (sub_res != AST_EVENT_SUB_NONE) {
ast_test_status_update(test, "UINT=1 subscription should not exist! (%d)\n",
ast_test_status_update(test, "UINT=1 subscription should not exist! (%u)\n",
sub_res);
res = AST_TEST_FAIL;
}
@@ -686,7 +686,7 @@ AST_TEST_DEFINE(event_sub_test)
AST_EVENT_IE_NEWMSGS, AST_EVENT_IE_PLTYPE_BITFLAGS, 8,
AST_EVENT_IE_END);
if (sub_res != AST_EVENT_SUB_NONE) {
ast_test_status_update(test, "BITFLAGS=8 subscription should not exist! (%d)\n",
ast_test_status_update(test, "BITFLAGS=8 subscription should not exist! (%u)\n",
sub_res);
res = AST_TEST_FAIL;
}
@@ -705,7 +705,7 @@ AST_TEST_DEFINE(event_sub_test)
AST_EVENT_IE_NEWMSGS, AST_EVENT_IE_PLTYPE_UINT, 4,
AST_EVENT_IE_END);
if (sub_res != AST_EVENT_SUB_NONE) {
ast_test_status_update(test, "EXISTS subscription should not exist! (%d)\n",
ast_test_status_update(test, "EXISTS subscription should not exist! (%u)\n",
sub_res);
res = AST_TEST_FAIL;
}