[asterisk-commits] mjordan: trunk r392190 - /trunk/tests/test_substitution.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 18 17:37:11 CDT 2013


Author: mjordan
Date: Tue Jun 18 17:37:09 2013
New Revision: 392190

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

In r391947, the CDR function was modified such that it will return a
value for the start,answer, and end times if asked. That time will just
be 0 if it hasn't happened yet.

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=392190&r1=392189&r2=392190
==============================================================================
--- trunk/tests/test_substitution.c (original)
+++ trunk/tests/test_substitution.c Tue Jun 18 17:37:09 2013
@@ -286,7 +286,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,,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},${this_does_not_exist},${THIS_DOES_NOT_EXIST(either)}", "123,,"));
 #undef TEST
 




More information about the asterisk-commits mailing list