[svn-commits] dlee: trunk r394037 - /trunk/tests/test_cel.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Jul 10 21:02:49 CDT 2013
Author: dlee
Date: Wed Jul 10 21:02:48 2013
New Revision: 394037
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394037
Log:
Fixed some CEL test crashes
Modified:
trunk/tests/test_cel.c
Modified: trunk/tests/test_cel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_cel.c?view=diff&rev=394037&r1=394036&r2=394037
==============================================================================
--- trunk/tests/test_cel.c (original)
+++ trunk/tests/test_cel.c Wed Jul 10 21:02:48 2013
@@ -1335,9 +1335,6 @@
ast_event_unsubscribe(event_sub);
event_sub = NULL;
- cel_expected_events = NULL;
- cel_received_events = NULL;
-
/* check events */
ast_test_validate(test, !check_events(local_expected, local_received));
@@ -1415,11 +1412,6 @@
cel_test_config->events |= 1<<AST_CEL_CONF_ENTER;
cel_test_config->events |= 1<<AST_CEL_CONF_EXIT;
- ast_test_register_init(TEST_CATEGORY, test_cel_init_cb);
-
- /* Verify received vs expected events and clean things up after every test */
- ast_test_register_cleanup(TEST_CATEGORY, cel_verify_and_cleanup_cb);
-
ast_channel_register(&test_cel_chan_tech);
AST_TEST_REGISTER(test_cel_channel_creation);
@@ -1444,6 +1436,11 @@
AST_TEST_REGISTER(test_cel_dial_answer_twoparty_bridge_b);
AST_TEST_REGISTER(test_cel_dial_answer_multiparty);
+ /* ast_test_register_* has to happen after AST_TEST_REGISTER */
+ /* Verify received vs expected events and clean things up after every test */
+ ast_test_register_init(TEST_CATEGORY, test_cel_init_cb);
+ ast_test_register_cleanup(TEST_CATEGORY, cel_verify_and_cleanup_cb);
+
return AST_MODULE_LOAD_SUCCESS;
}
More information about the svn-commits
mailing list