From: Paul Eggert Date: Sun, 11 Aug 2024 02:28:37 +0000 (-0700) Subject: head: new test for big count X-Git-Tag: v9.6~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91657204c129b5fa059052aa59d85bacdfaee3c0;p=thirdparty%2Fcoreutils.git head: new test for big count * tests/head/head-c.sh: Also test head -c with a number much bigger than UINTMAX_MAX. --- diff --git a/tests/head/head-c.sh b/tests/head/head-c.sh index 664e3d56b0..f7cef03b0a 100755 --- a/tests/head/head-c.sh +++ b/tests/head/head-c.sh @@ -41,6 +41,8 @@ esac # based on the value passed to -c vm=$(get_min_ulimit_v_ head -c1 /dev/null) && { (ulimit -v $(($vm+8000)) && head --bytes=-$SSIZE_MAX < /dev/null) || fail=1 + (ulimit -v $(($vm+8000)) && + head --bytes=-${UINTMAX_OFLOW}000 < /dev/null) || fail=1 } # Make sure it works on funny files in /proc and /sys.