]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid spurious failure when SIZE_MAX is 2^32-1
authorJim Meyering <meyering@fb.com>
Mon, 27 May 2013 01:56:50 +0000 (18:56 -0700)
committerJim Meyering <meyering@fb.com>
Mon, 27 May 2013 22:02:50 +0000 (15:02 -0700)
* tests/split/line-bytes.sh: Since we've limited virtual memory to
20MB, choose a smaller size, 1GiB (which is <= SIZE_MAX) rather than
1EiB, which is larger than SIZE_MAX on 32-bit systems.
I confirmed that this test still fails when the split.c-modifying
part of v8.21-58-gfec363c is backed out.

tests/split/line-bytes.sh

index c58f12b210acb9362231e881e893d1c29be8defb..2beae815c899f7a281904b8aaa7c5bbc5d29698a 100755 (executable)
@@ -22,7 +22,7 @@ require_ulimit_v_
 
 
 # Ensure memory is not allocated up front
-(ulimit -v 20000; split -C 'E' /dev/null) || fail=1
+(ulimit -v 20000; split -C 'G' /dev/null) || fail=1
 
 
 # Ensure correct operation with various split and buffer size combinations