diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-10-20 19:26:52 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-10-20 19:29:32 +0200 |
commit | 079487b48724d936b31a6696ae0f929b0251eaa3 (patch) | |
tree | 49721ad361a11b5c25ac4202ddcbf4c5c9e2bcb9 /testsuite | |
parent | dac5b8314236338963877903cba3d7edfbfc9c58 (diff) | |
download | busybox-w32-079487b48724d936b31a6696ae0f929b0251eaa3.tar.gz busybox-w32-079487b48724d936b31a6696ae0f929b0251eaa3.tar.bz2 busybox-w32-079487b48724d936b31a6696ae0f929b0251eaa3.zip |
hexdump: fix dup block comparison
function old new delta
bb_dump_dump 1523 1520 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/hexdump.tests | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/hexdump.tests b/testsuite/hexdump.tests index 45a0c1300..cfb20187e 100755 --- a/testsuite/hexdump.tests +++ b/testsuite/hexdump.tests | |||
@@ -15,4 +15,23 @@ testing 'hexdump -C with four NULs' \ | |||
15 | '' \ | 15 | '' \ |
16 | '\0\0\0\0' | 16 | '\0\0\0\0' |
17 | 17 | ||
18 | testing "hexdump does not think last padded block matches any full block" \ | ||
19 | "hexdump -e '1/1 \"%02x|\"1/1 \"%02x!\\n\"'" \ | ||
20 | "\ | ||
21 | 00|00! | ||
22 | * | ||
23 | 00| ! | ||
24 | " \ | ||
25 | '' \ | ||
26 | '\0\0\0\0\0\0\0\0\0\0\0' | ||
27 | |||
28 | testing "hexdump thinks last full block can match" \ | ||
29 | "hexdump -e '1/1 \"%02x|\"1/1 \"%02x!\\n\"'" \ | ||
30 | "\ | ||
31 | 00|00! | ||
32 | * | ||
33 | " \ | ||
34 | '' \ | ||
35 | '\0\0\0\0\0\0\0\0\0\0\0\0' | ||
36 | |||
18 | exit $FAILCOUNT | 37 | exit $FAILCOUNT |