[asterisk-commits] mnicholson: trunk r327684 - /trunk/tests/test_substitution.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 11 15:06:31 CDT 2011
Author: mnicholson
Date: Mon Jul 11 15:06:28 2011
New Revision: 327684
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=327684
Log:
use printf instead of echo -n in substitution test
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=327684&r1=327683&r2=327684
==============================================================================
--- trunk/tests/test_substitution.c (original)
+++ trunk/tests/test_substitution.c Mon Jul 11 15:06:28 2011
@@ -261,8 +261,8 @@
TEST(test_expected_result(test, c, "A${${baz}o:-2:-1}A", "A2A"));
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(echo -n 123)},${SHELL(echo -n 456)}", "123,456"));
- TEST(test_expected_result(test, c, "${foo},${CDR(answer)},${SHELL(echo -n 456)}", "123,,456"));
+ TEST(test_expected_result(test, c, "${SHELL(printf 123)},${SHELL(printf 456)}", "123,456"));
+ TEST(test_expected_result(test, c, "${foo},${CDR(answer)},${SHELL(printf 456)}", "123,,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