summaryrefslogtreecommitdiff
path: root/tests/misc/od.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/od.pl')
-rwxr-xr-xtests/misc/od.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/misc/od.pl b/tests/misc/od.pl
index 0649b1c62..fb579aa90 100755
--- a/tests/misc/od.pl
+++ b/tests/misc/od.pl
@@ -57,6 +57,13 @@ my @Tests =
# even if the kernel reports that the file has stat.st_size = 0.
['j-proc', "-An -c -j $proc_file_byte_count $proc_file",
{IN=>{f2=>'e'}}, {OUT=>" e\n"}],
+
+ # Ensure that a large width does not cause trouble.
+ # From coreutils-7.0 through coreutils-8.21, these would print
+ # approximately 128KiB of padding.
+ ['wide-a', '-a -w65537 -An', {IN=>{g=>'x'}}, {OUT=>" x\n"}],
+ ['wide-c', '-c -w65537 -An', {IN=>{g=>'x'}}, {OUT=>" x\n"}],
+ ['wide-x', '-tx1 -w65537 -An', {IN=>{g=>'B'}}, {OUT=>" 42\n"}],
);
my $save_temps = $ENV{DEBUG};