mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-23 13:09:00 +00:00
Fixing last errors in the conversion, though it appears that the AES_* functions are still broken.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@243077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -211,7 +211,7 @@ AST_TEST_DEFINE(test_substitution)
|
|||||||
|
|
||||||
ast_test_status_update(&args->status_update, "Testing variable substitution ...\n");
|
ast_test_status_update(&args->status_update, "Testing variable substitution ...\n");
|
||||||
|
|
||||||
c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Test/substitution");
|
c = ast_channel_alloc(0, 0, "", "", "", "", "", "", 0, "Test/substitution");
|
||||||
|
|
||||||
#define TEST(t) if (t == AST_TEST_FAIL) { res = AST_TEST_FAIL; }
|
#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}"));
|
TEST(test_chan_integer(&args->status_update, &args->ast_test_error_str, c, &c->cid.cid_pres, "${CALLINGPRES}"));
|
||||||
@@ -263,15 +263,15 @@ AST_TEST_DEFINE(test_substitution)
|
|||||||
if (acf->read && acf->read2) {
|
if (acf->read && acf->read2) {
|
||||||
char expression[80];
|
char expression[80];
|
||||||
snprintf(expression, sizeof(expression), "${%s(foo)}", cmd);
|
snprintf(expression, sizeof(expression), "${%s(foo)}", cmd);
|
||||||
res = test_chan_function(&args->status_update,
|
if (AST_TEST_FAIL == test_chan_function(&args->status_update, &args->ast_test_error_str,c, expression)) {
|
||||||
&args->ast_test_error_str,c, expression);
|
res = AST_TEST_FAIL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ast_free(cmd);
|
ast_free(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
ast_hangup(c);
|
ast_hangup(c);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user