dect
/
asterisk
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asterisk/tests
russell 9c4e095194 Add ast_event subscription unit test and fix some ast_event API bugs.
This patch introduces another test in test_event.c that exercises most of the
subscription related ast_event API calls.  I made some minor additions to the
existing event allocation test to increase API coverage by the test code.
Finally, I made a list in a comment of API calls not yet touched by the test
module as a to-do list for future test development.

During the development of this test code, I discovered a number of bugs in
the event API.

1) subscriptions to AST_EVENT_ALL were not handled appropriately in a couple
   of different places.  The API allows a subscription to all event types,
   but with IE parameters, just as if it was a subscription to a specific
   event type.  However, the parameters were being ignored.  This affected
   ast_event_check_subscriber() and event distribution to subscribers.

2) Some of the logic in ast_event_check_subscriber() for checking subscriptions
   against query parameters was wrong.

Review: https://reviewboard.asterisk.org/r/617/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@258632 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-22 21:06:53 +00:00
..
Makefile Change the name of the category 'TEST' to match the name of the subdir 2010-03-23 19:19:52 +00:00
test_acl.c Add unit test for testing ACL functionality. 2010-03-25 17:52:20 +00:00
test_ami_security_events.sh Add an API for reporting security events, and a security event logging module. 2009-07-11 19:15:03 +00:00
test_amihooks.c ami_testhooks.c automatically registers hook 2009-11-06 22:07:22 +00:00
test_app.c Merged revisions 257544 via svnmerge from 2010-04-15 21:26:19 +00:00
test_ast_format_str_reduce.c Various updates to the unit test API. 2010-02-09 23:32:14 +00:00
test_astobj2.c astobj2 unit test and bug fix 2010-02-11 18:42:25 +00:00
test_devicestate.c Tweak copyright and author lines. 2010-02-22 06:43:02 +00:00
test_dlinklists.c
test_event.c Add ast_event subscription unit test and fix some ast_event API bugs. 2010-04-22 21:06:53 +00:00
test_gosub.c Fix some compiler errors that popped up after the CCSS merge. 2010-04-09 15:56:55 +00:00
test_heap.c fixes some test description formatting inconsistencies so log file looks nice 2010-02-11 21:57:37 +00:00
test_logger.c
test_pbx.c Add ASTERISK_FILE_VERSION() macro 2010-04-11 22:04:01 +00:00
test_sched.c Various updates to the unit test API. 2010-02-09 23:32:14 +00:00
test_security_events.c Add an API for reporting security events, and a security event logging module. 2009-07-11 19:15:03 +00:00
test_skel.c Various updates to the unit test API. 2010-02-09 23:32:14 +00:00
test_stringfields.c Fix tests on 32-bit systems. 2010-03-11 20:29:19 +00:00
test_strings.c Add ASTERISK_FILE_VERSION macro. 2010-02-24 06:38:10 +00:00
test_substitution.c test_substitution expects func_curl to be present to work. 2010-04-12 02:19:02 +00:00
test_time.c Re-enable test_time on non-Linux. 2010-03-16 19:36:55 +00:00
test_utils.c base64 unit test 2010-03-02 23:38:29 +00:00