aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-26 01:56:24 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-26 01:56:24 +0000
commitb5bbff260e878f2c2291f96372fc2456f88d00d8 (patch)
tree24f515b1daeb86d0eb0d5f6a355a09e793b59812 /tests
parentc13a9d3f0895be76cb2bb71ba4eb24a8638c60d4 (diff)
Fixing last errors in the conversion, though it appears that the AES_* functions are still broken.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@243077 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'tests')
-rw-r--r--tests/test_substitution.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_substitution.c b/tests/test_substitution.c
index a9b327846..7525a7837 100644
--- a/tests/test_substitution.c
+++ b/tests/test_substitution.c
@@ -211,7 +211,7 @@ AST_TEST_DEFINE(test_substitution)
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; }
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) {
char expression[80];
snprintf(expression, sizeof(expression), "${%s(foo)}", cmd);
- res = test_chan_function(&args->status_update,
- &args->ast_test_error_str,c, expression);
+ if (AST_TEST_FAIL == test_chan_function(&args->status_update, &args->ast_test_error_str,c, expression)) {
+ res = AST_TEST_FAIL;
+ }
}
}
ast_free(cmd);
}
ast_hangup(c);
-
return res;
}