[asterisk-commits] rmudgett: trunk r398026 - in /trunk: ./ tests/test_substitution.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 30 12:11:08 CDT 2013


Author: rmudgett
Date: Fri Aug 30 12:11:06 2013
New Revision: 398026

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=398026
Log:
test_substitution: Fix failing test.

Revert the -r392190 change.  The original test was correct.  The CDR code
was actually returning an unititialized buffer.
........

Merged revisions 398025 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/tests/test_substitution.c

Propchange: trunk/
------------------------------------------------------------------------------
--- branch-12-merged (original)
+++ branch-12-merged Fri Aug 30 12:11:06 2013
@@ -1,1 +1,1 @@
-/branches/12:1-397989,398002,398016,398023
+/branches/12:1-397989,398002,398016,398023,398025

Modified: trunk/tests/test_substitution.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_substitution.c?view=diff&rev=398026&r1=398025&r2=398026
==============================================================================
--- trunk/tests/test_substitution.c (original)
+++ trunk/tests/test_substitution.c Fri Aug 30 12:11:06 2013
@@ -288,7 +288,7 @@
 	pbx_builtin_setvar_helper(c, "list1", "ab&cd&ef");
 	TEST(test_expected_result(test, c, "${LISTFILTER(list1,&,cd)}", "ab&ef"));
 	TEST(test_expected_result(test, c, "${SHELL(printf '%d' 123)},${SHELL(printf '%d' 456)}", "123,456"));
-	TEST(test_expected_result(test, c, "${foo},${CDR(answer)},${SHELL(printf '%d' 456)}", "123,0.000000,456"));
+	TEST(test_expected_result(test, c, "${foo},${CDR(answer)},${SHELL(printf '%d' 456)}", "123,,456"));
 	TEST(test_expected_result(test, c, "${foo},${CDR(answer,u)},${SHELL(printf '%d' 456)}", "123,0.000000,456"));
 	TEST(test_expected_result(test, c, "${foo},${this_does_not_exist},${THIS_DOES_NOT_EXIST(either)}", "123,,"));
 #undef TEST




More information about the asterisk-commits mailing list