summaryrefslogtreecommitdiff
path: root/tests/test_stasis_endpoints.c
diff options
context:
space:
mode:
authorDavid M. Lee <dlee@digium.com>2013-05-08 19:00:55 +0000
committerDavid M. Lee <dlee@digium.com>2013-05-08 19:00:55 +0000
commit07e2eb71e991eb1bb0ad2e9b2cb7679803859a63 (patch)
tree59668f22c648f6af2d37c4557f2f3f42494498e6 /tests/test_stasis_endpoints.c
parent671f900225f89794db9b6404108fe648a017f43a (diff)
Fixed set-but-not-used warning caught by newer GCC
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests/test_stasis_endpoints.c')
-rw-r--r--tests/test_stasis_endpoints.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_stasis_endpoints.c b/tests/test_stasis_endpoints.c
index 30d0d09ae..8b4f1fae9 100644
--- a/tests/test_stasis_endpoints.c
+++ b/tests/test_stasis_endpoints.c
@@ -112,6 +112,7 @@ AST_TEST_DEFINE(state_changes)
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_TEST_DEFINE(state_changes)
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);