<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/split/line-bytes.sh, branch v8.22</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.22</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.22'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2013-05-27T22:02:50Z</updated>
<entry>
<title>tests: avoid spurious failure when SIZE_MAX is 2^32-1</title>
<updated>2013-05-27T22:02:50Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@fb.com</email>
</author>
<published>2013-05-27T01:56:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5a7f03c210ece1058bdf172c6a47bfacc15bd73a'/>
<id>urn:sha1:5a7f03c210ece1058bdf172c6a47bfacc15bd73a</id>
<content type='text'>
* tests/split/line-bytes.sh: Since we've limited virtual memory to
20MB, choose a smaller size, 1GiB (which is &lt;= 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.
</content>
</entry>
<entry>
<title>split: with --line-bytes only allocate memory as needed</title>
<updated>2013-05-23T10:13:24Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-04-20T07:46:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=fec363cebf581ef27f6d01686dec5a0499aa6818'/>
<id>urn:sha1:fec363cebf581ef27f6d01686dec5a0499aa6818</id>
<content type='text'>
* src/split.c (line_bytes_split): Rewrite to only buffer
when necessary.  I.E. only increase the buffer when we've
already lines output in a split and we encounter a line
larger than the input buffer size, in which case a hold
buffer will be increased in increments of the input buffer size.
(lines_rr): Use the more abstract xalloc_die() just like
we did in line_bytes_split(), rather than explicitly
printing the "memory exhausted" message and exiting.
* tests/split/line-bytes.sh: Add a new test for this
function which previously had no test coverage.
* tests/local.mk: Reference the new test.
* NEWS: Mention the improvement.
Fixes http://bugs.gnu.org/13537
</content>
</entry>
</feed>
