[asterisk-commits] mjordan: branch 13 r428815 - /branches/13/tests/test_stasis.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Dec 2 13:03:49 CST 2014
Author: mjordan
Date: Tue Dec 2 13:03:42 2014
New Revision: 428815
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=428815
Log:
tests/test_stasis: Resolve compilation issues from Asterisk 12 merge
When merging the changes up stream in r428687, I missed the fact that the
signature for stasis_message_type_create was changed. This patch fixes
the compilation issues introduced by that merge.
Modified:
branches/13/tests/test_stasis.c
Modified: branches/13/tests/test_stasis.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/tests/test_stasis.c?view=diff&rev=428815&r1=428814&r2=428815
==============================================================================
--- branches/13/tests/test_stasis.c (original)
+++ branches/13/tests/test_stasis.c Tue Dec 2 13:03:42 2014
@@ -546,7 +546,7 @@
test_data = ao2_alloc(1, NULL);
ast_test_validate(test, NULL != test_data);
- test_message_type = stasis_message_type_create("TestMessage", NULL);
+ ast_test_validate(test, stasis_message_type_create("TestMessage", NULL, &test_message_type) == STASIS_MESSAGE_TYPE_SUCCESS);
test_message = stasis_message_create(test_message_type, test_data);
stasis_publish(topic, test_message);
@@ -794,7 +794,7 @@
break;
}
- test_message_type = stasis_message_type_create("test", NULL);
+ ast_test_validate(test, stasis_message_type_create("test", NULL, &test_message_type) == STASIS_MESSAGE_TYPE_SUCCESS);
ast_test_validate(test, NULL != test_message_type);
test_data = ao2_alloc(1, NULL);
@@ -1633,11 +1633,11 @@
consumer3 = consumer_create(1);
ast_test_validate(test, NULL != consumer3);
- test_message_type1 = stasis_message_type_create("TestMessage1", NULL);
+ ast_test_validate(test, stasis_message_type_create("TestMessage1", NULL, &test_message_type1) == STASIS_MESSAGE_TYPE_SUCCESS);
ast_test_validate(test, NULL != test_message_type1);
- test_message_type2 = stasis_message_type_create("TestMessage2", NULL);
+ ast_test_validate(test, stasis_message_type_create("TestMessage2", NULL, &test_message_type2) == STASIS_MESSAGE_TYPE_SUCCESS);
ast_test_validate(test, NULL != test_message_type2);
- test_message_type3 = stasis_message_type_create("TestMessage3", NULL);
+ ast_test_validate(test, stasis_message_type_create("TestMessage3", NULL, &test_message_type3) == STASIS_MESSAGE_TYPE_SUCCESS);
ast_test_validate(test, NULL != test_message_type3);
uut = stasis_message_router_create_pool(topic);
More information about the asterisk-commits
mailing list