diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-03 16:27:54 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-03 16:29:06 +0200 |
commit | e5d5f5b9a770de5a48d1a3bd293d5d611d6624c4 (patch) | |
tree | 64d7021ed5058bf9647778e24fda5ab1656d686c /testsuite/hexdump.tests | |
parent | 9634e8a7d545283c662992d4d3e4a1bcd557c055 (diff) |
hexdump: fix short file of zero butes treated as dup
function old new delta
bb_dump_dump 1466 1491 +25
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/hexdump.tests')
-rwxr-xr-x | testsuite/hexdump.tests | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/hexdump.tests b/testsuite/hexdump.tests new file mode 100755 index 000000000..45a0c1300 --- /dev/null +++ b/testsuite/hexdump.tests @@ -0,0 +1,18 @@ +#!/bin/sh + +# Copyright 2018 by Denys Vlasenko <vda.linux@googlemail.com> +# Licensed under GPLv2, see file LICENSE in this source tree. + +. ./testing.sh + +# testing "description" "command" "result" "infile" "stdin" +testing 'hexdump -C with four NULs' \ + 'hexdump -C' \ + "\ +00000000 00 00 00 00 |....| +00000004 +" \ + '' \ + '\0\0\0\0' + +exit $FAILCOUNT |