[asterisk-commits] rmudgett: branch 12 r398025 - /branches/12/tests/test_substitution.c

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


Author: rmudgett
Date: Fri Aug 30 12:10:41 2013
New Revision: 398025

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

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

Modified:
    branches/12/tests/test_substitution.c

Modified: branches/12/tests/test_substitution.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/tests/test_substitution.c?view=diff&rev=398025&r1=398024&r2=398025
==============================================================================
--- branches/12/tests/test_substitution.c (original)
+++ branches/12/tests/test_substitution.c Fri Aug 30 12:10:41 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