<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/pr/Test.pm, branch master</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://www.git.shady.money/coreutils/atom?h=master</id>
<link rel='self' href='https://www.git.shady.money/coreutils/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/'/>
<updated>2008-05-10T11:35:29Z</updated>
<entry>
<title>tests: convert pr tests</title>
<updated>2008-05-10T11:35:29Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-05-10T09:38:07Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=a59258fbc7ef7610ffa3a0fe6dbe8bc0f6008f26'/>
<id>urn:sha1:a59258fbc7ef7610ffa3a0fe6dbe8bc0f6008f26</id>
<content type='text'>
* configure.ac (AC_CONFIG_FILES): Remove tests/pr/Makefile.
* tests/Makefile.am (SUBDIRS): Remove pr.
* tests/pr/pr-tests: New file, with tests from...
* tests/pr/Test.pm: ...here.  Remove file.
* tests/Makefile.am (EXTRA_DIST): Add $(pr_data).
(pr_data): List all of the pr's test-related data files.
</content>
</entry>
<entry>
<title>pr -e, with a mix of backspaces and TABs, could corrupt the heap</title>
<updated>2008-04-19T11:34:38Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-04-19T10:48:10Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=6856089f7bfaca2709b303f01dae001a30930b61'/>
<id>urn:sha1:6856089f7bfaca2709b303f01dae001a30930b61</id>
<content type='text'>
* tests/pr/Test.pm: New tests for the above.
* src/pr.c (char_to_clump): Ensure that "input_position" never
goes below 0.
Also, elide any backspace encountered when input_position is 0,
to be compatible at least with /bin/pr from Solaris 10.
This bug is present in the original version:
b25038ce9a234ea0906ddcbd8a0012e917e6c661
* NEWS [Bug fixes]: Mention this.
Report and diagnosis by Cristian Cadar, Daniel Dunbar and Dawson Engler
in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13272
</content>
</entry>
<entry>
<title>Update all copyright notices to use the newer form.</title>
<updated>2007-07-23T12:35:58Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-07-23T12:35:58Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=71aa3ea88084d17bcb4fc1031ad7b66f8647115e'/>
<id>urn:sha1:71aa3ea88084d17bcb4fc1031ad7b66f8647115e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change "version 2" to "version 3" in all copyright notices.</title>
<updated>2007-07-10T11:35:56Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-07-10T10:21:15Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=33342c1a0a464f198df3f177432a0e98e482e7a4'/>
<id>urn:sha1:33342c1a0a464f198df3f177432a0e98e482e7a4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pr -F no longer suppresses the footer or the first two blank header lines</title>
<updated>2007-07-04T10:45:10Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@CS.UCLA.EDU</email>
</author>
<published>2007-07-03T18:36:43Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=36ce675bb4224a41adafd448f39020e70db14094'/>
<id>urn:sha1:36ce675bb4224a41adafd448f39020e70db14094</id>
<content type='text'>
Here's a patch along the lines of
&lt;http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10849/focus=10857&gt;.
It's a bit large since it changes the test cases to match the behavior,
and the test cases' file names depend on the behavior!

* NEWS: pr -F no longer suppresses the footer or the first two blank
lines in the header.
* doc/coreutils.texi (pr invocation): Likewise.  Also, a too-short
page length implies -t, not -T.
* src/pr.c (lines_per_header, lines_per_footer): Now constants.
(init_parameters): Don't try to change them.
(print_header): Use the same header and footer format regardless of
wither form feeds are being used.
(usage): Adjust to above change when describing too-short page length.
Too-short page length impliesy -t, not -T.
* tests/pr/2-S_f-t_notab: Adjust to the fact that -F now affects
only formfeed handling; it does not change the header.
* tests/pr/2-Sf-t_notab: Likewise.
...
* tests/pr/3-5l17f-t: Remove, since it's been renamed to another
file whose name has a line count 7 larger,
reflecting the new line count needed for this behavior.
* tests/pr/3a3l8f-t: Likewise.
...
* tests/pr/w72l24f-ll: Likewise.

Signed-off-by: Jim Meyering &lt;jim@meyering.net&gt;
</content>
</entry>
<entry>
<title>Add/fix copyright notices and adjust to latest GNU FDL.</title>
<updated>2006-08-17T19:58:17Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-08-17T19:58:17Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=218fa5c61ba2f211b175aa943faa7eea286ff69e'/>
<id>urn:sha1:218fa5c61ba2f211b175aa943faa7eea286ff69e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't set _POSIX2_VERSION; no longer needed.</title>
<updated>2005-04-29T23:49:47Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-04-29T23:49:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=87aed84ff4adb186187b1432a1e0dae29e8fd7f0'/>
<id>urn:sha1:87aed84ff4adb186187b1432a1e0dae29e8fd7f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't let pr treat +1:-1 like +1:18446744073709551615.</title>
<updated>2005-04-01T07:40:33Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-04-01T07:40:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=9c9c4327e2a95591784149566699a052ad12fdb9'/>
<id>urn:sha1:9c9c4327e2a95591784149566699a052ad12fdb9</id>
<content type='text'>
(neg-page): Add a test for this.
</content>
</entry>
<entry>
<title>Both `pr -0' and e.g., `pr -03' would evoke `column count too large'.</title>
<updated>2005-03-15T18:09:05Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-03-15T18:09:05Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=fd304f1e0e121f7ff61fd2dc578b92e63ea4ccc5'/>
<id>urn:sha1:fd304f1e0e121f7ff61fd2dc578b92e63ea4ccc5</id>
<content type='text'>
`pr -0' should give a better diagnostic and `pr -03' should be
equivalent to `pr -3'.

(parse_column_count): Change return type to void.
Call error (EXIT_FAILURE, ... for an invalid string.
(main): Allocate space for column_count_string using malloc.
Accumulate all old-style column-count digits before converting.
When the number of columns is specified via both old-style,
(e.g., -3), and a long option (--columns=5), ensure that only
the last one specified takes effect.

Add tests for the above.
</content>
</entry>
<entry>
<title>(test_vector): For each -N test, automatically</title>
<updated>2005-01-08T09:35:04Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-01-08T09:35:04Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/coreutils/commit/?id=08f451c3f442ff764fe3cc61fe71635c27ee1567'/>
<id>urn:sha1:08f451c3f442ff764fe3cc61fe71635c27ee1567</id>
<content type='text'>
create a new test vector using --columns=N.
</content>
</entry>
</feed>
