aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-07-03 16:27:54 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-07-03 16:29:06 +0200
commite5d5f5b9a770de5a48d1a3bd293d5d611d6624c4 (patch)
tree64d7021ed5058bf9647778e24fda5ab1656d686c /testsuite
parent9634e8a7d545283c662992d4d3e4a1bcd557c055 (diff)
downloadbusybox-w32-e5d5f5b9a770de5a48d1a3bd293d5d611d6624c4.tar.gz
busybox-w32-e5d5f5b9a770de5a48d1a3bd293d5d611d6624c4.tar.bz2
busybox-w32-e5d5f5b9a770de5a48d1a3bd293d5d611d6624c4.zip
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')
-rwxr-xr-xtestsuite/hexdump.tests18
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 @@
1#!/bin/sh
2
3# Copyright 2018 by Denys Vlasenko <vda.linux@googlemail.com>
4# Licensed under GPLv2, see file LICENSE in this source tree.
5
6. ./testing.sh
7
8# testing "description" "command" "result" "infile" "stdin"
9testing 'hexdump -C with four NULs' \
10 'hexdump -C' \
11 "\
1200000000 00 00 00 00 |....|
1300000004
14" \
15 '' \
16 '\0\0\0\0'
17
18exit $FAILCOUNT