From a8737499b5e066e460e58f47ed7835193d798126 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 23 Apr 2001 07:31:17 +0000 Subject: (block-sync-1): new test, for just-fixed bug --- tests/dd/skip-seek | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/dd/skip-seek b/tests/dd/skip-seek index a740eb721..97345a9cc 100755 --- a/tests/dd/skip-seek +++ b/tests/dd/skip-seek @@ -27,7 +27,7 @@ my $script_name = $ENV{SCRIPT_NAME}; my @Tests = ( [ - '1', qw (bs=1 skip=1 seek=2 conv=notrunc count=3 of=@AUX@ < ), + 'skip-seek-1', qw (bs=1 skip=1 seek=2 conv=notrunc count=3 of=@AUX@ < ), {IN=> '0123456789abcdef'}, {AUX=> 'zyxwvutsrqponmlkji'}, {OUT=> ''}, @@ -35,7 +35,7 @@ my @Tests = {CMP=> ['zy123utsrqponmlkji', {'@AUX@'=> undef}]}, ], [ - '3', qw (bs=5 skip=1 seek=1 conv=notrunc count=1 of=@AUX@ < ), + 'skip-seek-2', qw (bs=5 skip=1 seek=1 conv=notrunc count=1 of=@AUX@ < ), {IN=> '0123456789abcdef'}, {AUX=> 'zyxwvutsrqponmlkji'}, {OUT=> ''}, @@ -43,13 +43,21 @@ my @Tests = {CMP=> ['zyxwv56789ponmlkji', {'@AUX@'=> undef}]}, ], [ - '4', qw (bs=5 skip=1 seek=1 count=1 of=@AUX@ < ), + 'skip-seek-3', qw (bs=5 skip=1 seek=1 count=1 of=@AUX@ < ), {IN=> '0123456789abcdef'}, {AUX=> 'zyxwvutsrqponmlkji'}, {OUT=> ''}, {ERR=> "1+0 records in\n1+0 records out\n"}, {CMP=> ['zyxwv56789', {'@AUX@'=> undef}]}, ], + [ + # Before fileutils-4.0.45, the last 10 bytes of output + # were these "\0\0\0\0\0\0\0\0 ". + 'block-sync-1', qw(ibs=10 cbs=10), 'conv=block,sync', '<', + {IN=> "01234567\nabcdefghijkl\n"}, + {OUT=> "01234567 abcdefghij "}, + {ERR=> "2+1 records in\n0+1 records out\n1 truncated record\n"}, + ], ); my $save_temps = $ENV{DEBUG}; -- cgit v1.2.3-70-g09d2