mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
Make sure unit tests compile
This fixes the unit tests that were broken by r403069 and several functions requiring a new parameter for sanitization of JSON messages generated from object snapshots. ........ Merged revisions 403094 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -248,14 +248,14 @@ AST_TEST_DEFINE(channel_snapshot_json)
|
||||
break;
|
||||
}
|
||||
|
||||
ast_test_validate(test, NULL == ast_channel_snapshot_to_json(NULL));
|
||||
ast_test_validate(test, NULL == ast_channel_snapshot_to_json(NULL, NULL));
|
||||
|
||||
chan = ast_channel_alloc(0, AST_STATE_DOWN, "cid_num", "cid_name", "acctcode", "exten", "context", NULL, 0, "TEST/name");
|
||||
ast_test_validate(test, NULL != chan);
|
||||
snapshot = ast_channel_snapshot_create(chan);
|
||||
ast_test_validate(test, NULL != snapshot);
|
||||
|
||||
actual = ast_channel_snapshot_to_json(snapshot);
|
||||
actual = ast_channel_snapshot_to_json(snapshot, NULL);
|
||||
expected = ast_json_pack("{ s: s, s: s, s: s, s: s,"
|
||||
" s: { s: s, s: s, s: i },"
|
||||
" s: { s: s, s: s },"
|
||||
|
||||
Reference in New Issue
Block a user