summaryrefslogtreecommitdiffhomepage
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-10-08 23:03:54 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-10-08 23:03:54 +0200
commit86ba007b84ae1ebe35e88c57e023caac3d2d9903 (patch)
tree5e80e0d26c2cefec73ba7f2000adccca62641daf /testsuite
parentd315a77a79817d364a1562f4457c21fbb8174025 (diff)
xxd: fix -p -r, closes 13881
function old new delta xxd_main 893 890 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/xxd.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/xxd.tests b/testsuite/xxd.tests
index 2e80be5fe..76fa96af9 100755
--- a/testsuite/xxd.tests
+++ b/testsuite/xxd.tests
@@ -31,4 +31,10 @@ testing 'xxd -p with 31 NULs' \
'' \
'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'
+testing 'xxd -p -r' \
+ 'xxd -p -r' \
+ '01234567765432100123456776543210' \
+ '' \
+ '30313233343536373736353433323130 30313233343536373736353433323130'
+
exit $FAILCOUNT