diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-07-12 11:27:11 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-07-12 11:27:11 +0200 |
commit | 8d269ef85984f6476e7fdbec2c5a70f3b5c48a72 (patch) | |
tree | 212f9c7fedad072a76e2bbd67190bd2c0f651529 /testsuite | |
parent | caa93ecdd3a9b998a69dcbfafdddbc9c58887ec3 (diff) | |
download | busybox-w32-8d269ef85984f6476e7fdbec2c5a70f3b5c48a72.tar.gz busybox-w32-8d269ef85984f6476e7fdbec2c5a70f3b5c48a72.tar.bz2 busybox-w32-8d269ef85984f6476e7fdbec2c5a70f3b5c48a72.zip |
awk: fix printf "%-10c", 0
function old new delta
awk_printf 596 626 +30
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/awk.tests | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index 242c897d1..3cddb4dd4 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -415,6 +415,14 @@ testing "awk printf('%c') can output NUL" \ | |||
415 | "awk '{printf(\"hello%c null\n\", 0)}'" "hello\0 null\n" "" "\n" | 415 | "awk '{printf(\"hello%c null\n\", 0)}'" "hello\0 null\n" "" "\n" |
416 | SKIP= | 416 | SKIP= |
417 | 417 | ||
418 | optional FEATURE_AWK_GNU_EXTENSIONS | ||
419 | testing "awk printf('%-10c') can output NUL" \ | ||
420 | "awk 'BEGIN { printf \"[%-10c]\n\", 0 }' | od -tx1" "\ | ||
421 | 0000000 5b 00 20 20 20 20 20 20 20 20 20 5d 0a | ||
422 | 0000015 | ||
423 | " "" "" | ||
424 | SKIP= | ||
425 | |||
418 | # testing "description" "command" "result" "infile" "stdin" | 426 | # testing "description" "command" "result" "infile" "stdin" |
419 | testing 'awk negative field access' \ | 427 | testing 'awk negative field access' \ |
420 | 'awk 2>&1 -- '\''{ $(-1) }'\' \ | 428 | 'awk 2>&1 -- '\''{ $(-1) }'\' \ |