[asterisk-commits] mjordan: branch 12 r428918 - /branches/12/tests/test_cel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 3 14:58:32 CST 2014
Author: mjordan
Date: Wed Dec 3 14:58:26 2014
New Revision: 428918
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=428918
Log:
tests/test_cel: Add test_cel_attended_transfer_bridges_link to racey tests
Despite failing less often, the ordering of the ATTENDEDTRANSFER event and the
BRIDGE_EXIT event for the Alice and David channels is not defined. This makes
the test still fail.
Modified:
branches/12/tests/test_cel.c
Modified: branches/12/tests/test_cel.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/tests/test_cel.c?view=diff&rev=428918&r1=428917&r2=428918
==============================================================================
--- branches/12/tests/test_cel.c (original)
+++ branches/12/tests/test_cel.c Wed Dec 3 14:58:26 2014
@@ -292,7 +292,9 @@
struct ast_json *extra,
const char *peer);
+#ifdef RACEY_TESTS
static int append_dummy_event(void);
+#endif
static struct ast_str *__test_cel_generate_peer_str(struct ast_channel_snapshot *chan, struct ast_bridge_snapshot *bridge)
{
@@ -1442,6 +1444,10 @@
return AST_TEST_PASS;
}
+/* XXX Validation needs to take into account the BRIDGE_EXIT for David and the
+ * ATTENDEDTRANSFER message are not guaranteed to be ordered
+ */
+#ifdef RACEY_TESTS
AST_TEST_DEFINE(test_cel_attended_transfer_bridges_link)
{
RAII_VAR(struct ast_channel *, chan_alice, NULL, safe_channel_release);
@@ -1526,6 +1532,7 @@
return AST_TEST_PASS;
}
+#endif
AST_TEST_DEFINE(test_cel_dial_pickup)
{
@@ -1707,6 +1714,7 @@
return 0;
}
+#ifdef RACEY_TESTS
static int append_dummy_event(void)
{
RAII_VAR(struct ast_event *, ev, NULL, ast_free);
@@ -1719,6 +1727,7 @@
return append_event(ev);
}
+#endif
static int append_expected_event_snapshot(
struct ast_channel_snapshot *snapshot,
@@ -2094,11 +2103,11 @@
#ifdef RACEY_TESTS
AST_TEST_UNREGISTER(test_cel_dial_answer_multiparty);
AST_TEST_UNREGISTER(test_cel_attended_transfer_bridges_swap);
+ AST_TEST_UNREGISTER(test_cel_attended_transfer_bridges_link);
#endif
AST_TEST_UNREGISTER(test_cel_blind_transfer);
AST_TEST_UNREGISTER(test_cel_attended_transfer_bridges_merge);
- AST_TEST_UNREGISTER(test_cel_attended_transfer_bridges_link);
AST_TEST_UNREGISTER(test_cel_dial_pickup);
@@ -2169,11 +2178,11 @@
#ifdef RACEY_TESTS
AST_TEST_REGISTER(test_cel_dial_answer_multiparty);
AST_TEST_REGISTER(test_cel_attended_transfer_bridges_swap);
+ AST_TEST_REGISTER(test_cel_attended_transfer_bridges_link);
#endif
AST_TEST_REGISTER(test_cel_blind_transfer);
AST_TEST_REGISTER(test_cel_attended_transfer_bridges_merge);
- AST_TEST_REGISTER(test_cel_attended_transfer_bridges_link);
AST_TEST_REGISTER(test_cel_dial_pickup);
More information about the asterisk-commits
mailing list