mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
head: new test for big count
* tests/head/head-c.sh: Also test head -c with a number much bigger than UINTMAX_MAX.
This commit is contained in:
1 parent
cb11d2ab5e
commit
91657204c1
1 file changed
+2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user