aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2024-08-10 19:28:37 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2024-08-10 19:30:01 -0700
commit91657204c129b5fa059052aa59d85bacdfaee3c0 (patch)
treeae0e12640a2c8286097293f3874f2d1c24af7324 /tests
parenttail: support counts > 2**64 (diff)
downloadcoreutils-91657204c129b5fa059052aa59d85bacdfaee3c0.tar.gz
coreutils-91657204c129b5fa059052aa59d85bacdfaee3c0.zip
head: new test for big count
* tests/head/head-c.sh: Also test head -c with a number much bigger than UINTMAX_MAX.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/head/head-c.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/head/head-c.sh b/tests/head/head-c.sh
index 664e3d56b..f7cef03b0 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.