]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: head-c: avoid spurious failure with a 32-bit size_t
authorJim Meyering <meyering@fb.com>
Tue, 28 May 2013 00:01:14 +0000 (17:01 -0700)
committerJim Meyering <meyering@fb.com>
Sun, 2 Jun 2013 03:44:47 +0000 (20:44 -0700)
commitaeaeb87c134ce748527ba99e749b7369fcba2438
tree0faadcbe2af7e68833f160cb5b484b5c8516ba1f
parent5a7f03c210ece1058bdf172c6a47bfacc15bd73a
tests: head-c: avoid spurious failure with a 32-bit size_t

* tests/misc/head-c.sh: Don't try to elide 1 exabytes, since on
32-bit systems, that number is not representable as a size_t.
This command would fail on 32-bit systems, where SIZE_MAX < 1E:
  head --bytes=-E < /dev/null
Instead of "E", use $SSIZE_MAX.
For discussion, see http://bugs.gnu.org/13530
tests/misc/head-c.sh