[asterisk-commits] dlee: trunk r388014 - /trunk/tests/test_stasis_endpoints.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed May 8 14:00:57 CDT 2013
Author: dlee
Date: Wed May 8 14:00:55 2013
New Revision: 388014
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=388014
Log:
Fixed set-but-not-used warning caught by newer GCC
Modified:
trunk/tests/test_stasis_endpoints.c
Modified: trunk/tests/test_stasis_endpoints.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_stasis_endpoints.c?view=diff&rev=388014&r1=388013&r2=388014
==============================================================================
--- trunk/tests/test_stasis_endpoints.c (original)
+++ trunk/tests/test_stasis_endpoints.c Wed May 8 14:00:55 2013
@@ -112,6 +112,7 @@
ast_endpoint_set_state(uut, AST_ENDPOINT_OFFLINE);
actual_count = stasis_message_sink_wait_for_count(sink, 1,
STASIS_SINK_DEFAULT_WAIT);
+ ast_test_validate(test, 1 == actual_count);
msg = sink->messages[0];
type = stasis_message_type(msg);
ast_test_validate(test, ast_endpoint_snapshot_type() == type);
@@ -121,6 +122,7 @@
ast_endpoint_set_max_channels(uut, 8675309);
actual_count = stasis_message_sink_wait_for_count(sink, 2,
STASIS_SINK_DEFAULT_WAIT);
+ ast_test_validate(test, 2 == actual_count);
msg = sink->messages[1];
type = stasis_message_type(msg);
ast_test_validate(test, ast_endpoint_snapshot_type() == type);
More information about the asterisk-commits
mailing list