Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Denys Vlasenko
committed
Jul 3, 2018
1 parent
9634e8a
commit e5d5f5b
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |