diff options
author | Ron Yorston <rmy@pobox.com> | 2021-09-10 14:47:27 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-09-10 14:47:27 +0100 |
commit | 3eb1d088e09db204f456ad7b76eced21e429f001 (patch) | |
tree | a81b5bb422db5ee97475a8f1a4b5236442ed6f14 /testsuite | |
parent | 12bc40da28f85cbe97673671f315f847f1dbbabf (diff) | |
parent | 40f2dd7dd2e50c9d81dda4d72bf9c85c4c479a89 (diff) | |
download | busybox-w32-3eb1d088e09db204f456ad7b76eced21e429f001.tar.gz busybox-w32-3eb1d088e09db204f456ad7b76eced21e429f001.tar.bz2 busybox-w32-3eb1d088e09db204f456ad7b76eced21e429f001.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/awk.tests | 6 | ||||
-rwxr-xr-x | testsuite/printf.tests | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index dc2ae2e11..bcaafe8fd 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -463,4 +463,10 @@ testing "awk \"cmd\" | getline" \ | |||
463 | "HELLO\n" \ | 463 | "HELLO\n" \ |
464 | '' '' | 464 | '' '' |
465 | 465 | ||
466 | # printf %% should print one % (had a bug where it didn't) | ||
467 | testing 'awk printf %% prints one %' \ | ||
468 | "awk 'BEGIN { printf \"%%\n\" }'" \ | ||
469 | "%\n" \ | ||
470 | '' '' | ||
471 | |||
466 | exit $FAILCOUNT | 472 | exit $FAILCOUNT |
diff --git a/testsuite/printf.tests b/testsuite/printf.tests index 34a65926e..050edef71 100755 --- a/testsuite/printf.tests +++ b/testsuite/printf.tests | |||
@@ -79,6 +79,11 @@ testing "printf understands %Ld" \ | |||
79 | "-5\n""0\n" \ | 79 | "-5\n""0\n" \ |
80 | "" "" | 80 | "" "" |
81 | 81 | ||
82 | testing "printf understands %%" \ | ||
83 | "${bb}printf '%%\n' 2>&1; echo \$?" \ | ||
84 | "%\n""0\n" \ | ||
85 | "" "" | ||
86 | |||
82 | testing "printf handles positive numbers for %d" \ | 87 | testing "printf handles positive numbers for %d" \ |
83 | "${bb}printf '%d\n' 3 +3 ' 3' ' +3' 2>&1; echo \$?" \ | 88 | "${bb}printf '%d\n' 3 +3 ' 3' ' +3' 2>&1; echo \$?" \ |
84 | "3\n"\ | 89 | "3\n"\ |