summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-07-11 12:00:31 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-07-11 12:00:31 +0200
commit3d57a8490738d9febaa4496eba791e4fbfc91826 (patch)
treeb421de22c2859dd18f34e99905ac38baba4d41d9 /testsuite
parent49c3ce64f092fd5434fc67056f312bd32f82bae3 (diff)
downloadbusybox-3d57a8490738d9febaa4496eba791e4fbfc91826.tar.gz
awk: undo TI_PRINT, it introduced a bug (print with any redirect acting as printf)
function old new delta evaluate 3329 3337 +8 Patch by Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/awk.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 770d8ffce..6b23b91cb 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -450,4 +450,9 @@ testing "awk exit N propagates through END's exit" \
"42\n" \
'' ''
+testing "awk print + redirect" \
+ "awk 'BEGIN { print \"STDERR %s\" >\"/dev/stderr\" }' 2>&1" \
+ "STDERR %s\n" \
+ '' ''
+
exit $FAILCOUNT