<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc, branch v7.2</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v7.2</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-03-29T17:54:54Z</updated>
<entry>
<title>tests: don't use lang-default from individual tests</title>
<updated>2009-03-29T17:54:54Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-03-29T17:54:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=eeeccb3d0f1481877551c55ddc4a7263e6bc3f48'/>
<id>urn:sha1:eeeccb3d0f1481877551c55ddc4a7263e6bc3f48</id>
<content type='text'>
* tests/sample-test: Don't recommend using lang-default here.
It is now run for each test automatically, via TESTS_ENVIRONMENT.
* tests/dd/reblock: Don't source lang-default here.
* tests/misc/truncate-fail-diag: Likewise.
</content>
</entry>
<entry>
<title>pwd: support -L and -P</title>
<updated>2009-03-25T12:33:32Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-03-23T20:48:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9b4aa5e268da5980f63a1c47c2cd7ba04ad4a394'/>
<id>urn:sha1:9b4aa5e268da5980f63a1c47c2cd7ba04ad4a394</id>
<content type='text'>
* src/pwd.c (longopts): New variable.
(logical_getcwd): New function.
(main): Use it.
(usage): Document new options.
* doc/coreutils.texi (pwd invocation): Likewise.
* NEWS: Likewise.
* TODO (pwd): Mark it done.
* tests/misc/pwd-option: New file.
* tests/Makefile.am (TESTS): Add test.
* THANKS: Update.
Reported by Paul D. Smith, in savannah bug 24949.
</content>
</entry>
<entry>
<title>tests: ls -v: exercise yet another change in gnulib's new filevercmp</title>
<updated>2009-03-24T21:33:47Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-03-24T21:33:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b498eb071de71a8b77fdaec3e4b8ea3e4c2074ea'/>
<id>urn:sha1:b498eb071de71a8b77fdaec3e4b8ea3e4c2074ea</id>
<content type='text'>
* tests/misc/ls-misc: Add names with ~ and ~.1~ suffixes.
</content>
</entry>
<entry>
<title>tests: adjust sort-continue not to fail under valgrind</title>
<updated>2009-03-18T20:44:45Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-03-17T20:23:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5b86dc69d7160b6422b02c8cfb909734275c2faa'/>
<id>urn:sha1:5b86dc69d7160b6422b02c8cfb909734275c2faa</id>
<content type='text'>
* tests/misc/sort-continue: Don't run cat inside fd-limited shell.
If sort fails to run in an fd-limited shell, skip the test.
</content>
</entry>
<entry>
<title>tests: add another sort/nmerge test</title>
<updated>2009-03-18T20:44:45Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@CS.UCLA.EDU</email>
</author>
<published>2009-03-09T21:56:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f31ea18146a686d1ce838a9b6e6785cbfae35bbf'/>
<id>urn:sha1:f31ea18146a686d1ce838a9b6e6785cbfae35bbf</id>
<content type='text'>
* tests/Makefile.am (TESTS): Add sort-merge-fdlimit.
* tests/misc/sort-merge-fdlimit: New file.
* doc/coreutils.texi (sort invocation): Document that we now silently
lower nmerge if necessary.
Patch by Paul Eggert, Nima Nikzad, Max Chang, Alexander Nguyen,
Sahil Amoli, and Nick Graham.
</content>
</entry>
<entry>
<title>sort: handle fd exhaustion better when merging</title>
<updated>2009-03-18T20:44:37Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@CS.UCLA.EDU</email>
</author>
<published>2009-03-13T22:48:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8f7fae59727e0a050a4833705a6f7849ba2c4531'/>
<id>urn:sha1:8f7fae59727e0a050a4833705a6f7849ba2c4531</id>
<content type='text'>
This is an alternative to my 9 March patch labeled "Silently lower
nmerge; don't (sometimes incorrectly) range-check"
&lt;http://lists.gnu.org/archive/html/bug-coreutils/2009-03/msg00070.html&gt;.
It differs by not using 'dup' to probe for extra file descriptors;
instead, it simply calls 'open' (and 'pipe') to open files and pipes,
until one of these calls fails due to file descriptor exhaustion; it
then backs off by 1, does a merge with the files that it has opened,
and then retries with the (now-smaller) number of files.

This patch requires quite a few more changes to the source code than
the earlier patch, but it is in some sense "better" because it doesn't
need to call "dup" ahead of time in order to decide whether "open" or
"pipe" will fail.  Also, it's more robust in the case where "open" or
"pipe" fails with errno==EMFILE because some system-wide limit is
exhausted.

* src/sort.c (create_temp_file): New arg SURVIVE_FD_EXHAUSTION.
(stream_open): New function, containing guts of xfopen.
(xfopen): Use it.
(pipe_fork): Set errno on failure.
(maybe_create_temp): New function, containing guts of create_temp.
(create_temp): Use it.
(open_temp): Distinguish failures due to file descriptor exhaustion
from other failures, and on fd exhaustion return a notice to caller
rather than dying.  Don't test execlp's return value; when it returns,
it *always* returns -1.
(open_input_files): New function.
(mergefps): New arg FPS. It's now the caller's responsibility to open
the input and output files.  All callers changed.
(mergefiles): New function.
(avoid_trashing_input, merge): Handle the case where a single merge
can't merge as much as we wanted due to file descriptor exhaustion, by
merging as much as we can and then retrying.
* tests/Makefile.am (TESTS): Add misc/sort-continue.
* tests/misc/sort-continue: New file.
* THANKS: Add Glen Lenker and Matt Pham who coauthored this patch.
</content>
</entry>
<entry>
<title>tests: groups-version: don't require that id be built</title>
<updated>2009-03-12T18:48:29Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-03-12T13:41:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ba5a1036f14f4a6b31363b6b0b0794806cd75fe7'/>
<id>urn:sha1:ba5a1036f14f4a6b31363b6b0b0794806cd75fe7</id>
<content type='text'>
* tests/misc/groups-version: groups is now independent of id.
</content>
</entry>
<entry>
<title>tests: skip the groups-dash test when "groups" is not built</title>
<updated>2009-03-12T18:48:21Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-03-12T13:40:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d16b4760d7ad8e5cfd72cae7ed1e6a33cb95613c'/>
<id>urn:sha1:d16b4760d7ad8e5cfd72cae7ed1e6a33cb95613c</id>
<content type='text'>
* tests/misc/groups-dash: Skip if groups is not being installed.
Suggested by Mike Frysinger.
Also fail if groups exits with nonzero status.
</content>
</entry>
<entry>
<title>cp: make -a option preserve xattrs, but with reduced diagnostics</title>
<updated>2009-03-11T16:32:44Z</updated>
<author>
<name>Ondřej Vašík</name>
<email>ovasik@redhat.com</email>
</author>
<published>2009-03-11T15:08:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c160afe902c07f5052dbd97c726a997db7fa20c0'/>
<id>urn:sha1:c160afe902c07f5052dbd97c726a997db7fa20c0</id>
<content type='text'>
* copy.c (copy_attr_by_fd): Reduce xattr diagnostics for 'cp -a'.
(copy_attr_by_name): Likewise.
* cp.c (main): Preserve xattrs with -a option, when possible.
* doc/coreutils.texi: Document that xattrs are preserved with
cp -a, with no added diagnostics.
* NEWS: Mention the change.
* tests/misc/xattr: Add tests for 'cp --preserve=all' and 'cp -a'.
</content>
</entry>
<entry>
<title>cat: Fix immediate output of processed data</title>
<updated>2009-03-11T14:27:39Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-03-11T11:39:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1644e589050ddfce4bbd5ebbe10a4e041499e386'/>
<id>urn:sha1:1644e589050ddfce4bbd5ebbe10a4e041499e386</id>
<content type='text'>
Introduced by commit 790892db, 2006-06-08 "Ensure that cat works ...".
* NEWS: Mention the bugfix.
* src/cat.c (cat): Fix the typo which stopped the writing
of processed data before a blocking read() is done.
* tests/misc/cat-buf: Add to ensure processed data is not buffered.
* tests/Makefile.am: Reference the new test.
</content>
</entry>
</feed>
