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>
This commit is contained in:
18
testsuite/hexdump.tests
Executable file
18
testsuite/hexdump.tests
Executable file
@@ -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
|
Reference in New Issue
Block a user