[svn-commits] tilghman: trunk r243076 - /trunk/tests/test_substitution.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Jan 25 19:41:50 CST 2010
Author: tilghman
Date: Mon Jan 25 19:41:47 2010
New Revision: 243076
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=243076
Log:
Using a dummy channel causes CDR() testing to fail.
Modified:
trunk/tests/test_substitution.c
Modified: trunk/tests/test_substitution.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_substitution.c?view=diff&rev=243076&r1=243075&r2=243076
==============================================================================
--- trunk/tests/test_substitution.c (original)
+++ trunk/tests/test_substitution.c Mon Jan 25 19:41:47 2010
@@ -211,7 +211,7 @@
ast_test_status_update(&args->status_update, "Testing variable substitution ...\n");
- c = ast_dummy_channel_alloc();
+ c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Test/substitution");
#define TEST(t) if (t == AST_TEST_FAIL) { res = AST_TEST_FAIL; }
TEST(test_chan_integer(&args->status_update, &args->ast_test_error_str, c, &c->cid.cid_pres, "${CALLINGPRES}"));
@@ -270,7 +270,7 @@
ast_free(cmd);
}
- ast_channel_release(c);
+ ast_hangup(c);
return res;
}
More information about the svn-commits
mailing list