From 42a8f28c00a4b1a68476db85f20be92886113296 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 29 Oct 2026 21:30:39 +0100 Subject: [PATCH] tests: tail: ensure tail accepts a huge --max-unchanged-stats value Reported at https://github.com/uutils/coreutils/issues/16007 * tests/tail/tail.pl: Add test case. Link: https://github.com/coreutils/coreutils/pull/437 --- tests/tail/tail.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/tail/tail.pl b/tests/tail/tail.pl index bac1269ff..abddea084 100755 --- a/tests/tail/tail.pl +++ b/tests/tail/tail.pl @@ -102,6 +102,10 @@ my @tv = ( # --zero-terminated ['zero-1', '-z -n 1', "x\0y", "y", 0], ['zero-2', '-z -n 2', "x\0y", "x\0y", 0], + +# A huge --max-unchanged-stats value is accepted. +['max-unchanged-stats-huge', '--max-unchanged-stats=99999999999999999999', + "a\n", "a\n", 0], ); my @Tests;