summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-03-29 09:37:23 +0000
committerJim Meyering <jim@meyering.net>2004-03-29 09:37:23 +0000
commit701ddad1e7074d76793702f8f297bc274b54e7a8 (patch)
tree25884e93a8338b24bfe9a3591b3550286ea6a4fb /tests
parentd9d757dd2c7b556f503bf061ccdfd8b9270afcf7 (diff)
downloadcoreutils-701ddad1e7074d76793702f8f297bc274b54e7a8.tar.xz
Use new OUT_SUBST directive, so that this
test is not sensitive to system-dependent block size differences.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/du/files0-from20
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/du/files0-from b/tests/du/files0-from
index d14b33c01..97ae4cd3c 100755
--- a/tests/du/files0-from
+++ b/tests/du/files0-from
@@ -53,27 +53,29 @@ my @Tests =
# one file name, no NUL
['1', '--files0-from=-', '<',
- {IN=>{f=>"g"}}, {AUX=>{g=>"x".64*1024}}, {OUT=>"4\tg\n"} ],
+ {IN=>{f=>"g"}}, {AUX=>{g=>''}},
+ {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
# one file name, with NUL
['1a', '--files0-from=-', '<',
- {IN=>{f=>"g\0"}}, {AUX=>{g=>"x".64*1024}}, {OUT=>"4\tg\n"} ],
+ {IN=>{f=>"g\0"}}, {AUX=>{g=>''}},
+ {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
# two file names, no final NUL
['2', '--files0-from=-', '<',
- {IN=>{f=>"g\0g"}}, {AUX=>{g=>"x".64*1024}}, {OUT=>"4\tg\n4\tg\n"} ],
+ {IN=>{f=>"g\0g"}}, {AUX=>{g=>''}},
+ {OUT=>"0\tg\n0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
# two file names, with final NUL
['2a', '--files0-from=-', '<',
- {IN=>{f=>"g\0g\0"}}, {AUX=>{g=>"x".64*1024}}, {OUT=>"4\tg\n4\tg\n"} ],
+ {IN=>{f=>"g\0g\0"}}, {AUX=>{g=>''}},
+ {OUT=>"0\tg\n0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
# Ensure that du processes FILEs following a zero-length name.
['zero-len', '--files0-from=-', '<',
- {IN=>{f=>"\0g\0"}}, {AUX=>{g=>"x".64*1024}},
- {OUT=>"4\tg\n"},
- {ERR => "du: -:1: invalid zero-length file name\n"},
- {EXIT=>1}
- ],
+ {IN=>{f=>"\0g\0"}}, {AUX=>{g=>''}},
+ {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'},
+ {ERR => "du: -:1: invalid zero-length file name\n"}, {EXIT=>1} ],
);
my $save_temps = $ENV{DEBUG};