<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc, branch v8.1</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.1</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-11-14T14:01:44Z</updated>
<entry>
<title>tests: help-version: exit nonzero when $built_programs is empty</title>
<updated>2009-11-14T14:01:44Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-11-13T20:01:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=00f0cabaecdd490529d05230435671eb89a7b5c5'/>
<id>urn:sha1:00f0cabaecdd490529d05230435671eb89a7b5c5</id>
<content type='text'>
* tests/misc/help-version: Use "Exit 1", rather than "Exit $fail"
with fail defined to 0 when $built_programs is empty.
</content>
</entry>
<entry>
<title>tests: avoid a spurious failure on a loaded system</title>
<updated>2009-11-14T13:53:17Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-11-13T22:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9ed50481484587e683a8a644ba4a121d6a36498e'/>
<id>urn:sha1:9ed50481484587e683a8a644ba4a121d6a36498e</id>
<content type='text'>
* tests/misc/timeout-parameters: This test could fail due to
the 1-second timeout expiring before a command of "no_such"
could be exec'd and fail.  Increase to 10 seconds.
</content>
</entry>
<entry>
<title>tests: avoid a spurious timeout on a heavily-loaded system</title>
<updated>2009-11-13T15:38:20Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-11-13T15:38:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4c9e7e01faf054811a65e28ff95f5f949ac0eac9'/>
<id>urn:sha1:4c9e7e01faf054811a65e28ff95f5f949ac0eac9</id>
<content type='text'>
* tests/misc/timeout-parameters: This test would fail due to
the 1-second timeout expiring before a command of "." could
be exec'd and fail.  Increase to 10 seconds.
</content>
</entry>
<entry>
<title>mktemp: fix bug with -q and closed stdout</title>
<updated>2009-11-07T17:10:25Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-11-05T19:19:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c768e2231b89901a2e29c3bf96c027b64f8646d9'/>
<id>urn:sha1:c768e2231b89901a2e29c3bf96c027b64f8646d9</id>
<content type='text'>
If stdin or stdout is closed, then freopen(,stderr) can violate
the premise that STDERR_FILENO==fileno(stderr), which in turn
breaks mktemp -q.

* bootstrap.conf (gnulib_modules): Add freopen-safer.
* src/mktemp.c (includes): Use stdio--.h.
* tests/misc/close-stdout: Enhance test to catch bug.
</content>
</entry>
<entry>
<title>nproc: A new program to count the available processors</title>
<updated>2009-11-06T16:54:12Z</updated>
<author>
<name>Giuseppe Scrivano</name>
<email>gscrivano@gnu.org</email>
</author>
<published>2009-10-31T17:59:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=74cf4cb26dcecd36eb45dc00dbd4587d9dc24a2f'/>
<id>urn:sha1:74cf4cb26dcecd36eb45dc00dbd4587d9dc24a2f</id>
<content type='text'>
* AUTHORS: Add my name.
* NEWS: Mention it.
* README: Likewise.
* bootstrap.conf (gnulib_modules): Add nproc.
* doc/coreutils.texi (nproc invocation): Add nproc info.
* man/Makefile.am (nproc.1): Add dependency.
* man/nproc.x: New template.
* man/.gitignore: Ignore generated man page.
* po/POTFILES.in: Add src/nproc.c.
* src/.gitignore: Exclude nproc.
* src/Makefile.am (EXTRA_PROGRAMS): Add nproc.
* src/nproc.c: New file.
* tests/Makefile.am (TESTS): Add misc/nproc-{avail,positive}.
* tests/misc/nproc-avail: New file.
* tests/misc/nproc-positive: New file.
</content>
</entry>
<entry>
<title>mktemp: enhance test to catch just-fixed typo behavior</title>
<updated>2009-11-05T20:12:33Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-11-05T15:36:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=20e5a0d562cf698fab7be3d04c5f1c356faa2dbb'/>
<id>urn:sha1:20e5a0d562cf698fab7be3d04c5f1c356faa2dbb</id>
<content type='text'>
Penance for botching the conflict resolution while rebasing my series.

* tests/misc/mktemp (check_tmp): Test for the bug when wrong parameter
is used.
</content>
</entry>
<entry>
<title>mktemp: add suffix handling</title>
<updated>2009-11-05T14:10:40Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-11-04T18:13:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=31a9937081dc41a5f8d28d71709204e413e09972'/>
<id>urn:sha1:31a9937081dc41a5f8d28d71709204e413e09972</id>
<content type='text'>
Now that mkstemps is supported, we might as well use it.

* src/mktemp.c (TMPDIR_OPTION): New enum value.
(longopts): Add new option.
(usage): Document it.
(count_trailing_X_s): Rename...
(count_consecutive_X_s): ...to this, and add parameter.
(mkstemp_len, mkdtemp_len): Add parameter.
(main): Implement new option.
(AUTHORS): Add myself.
* AUTHORS (mktemp): Likewise.
* tests/misc/mktemp: Test new option.
* doc/coreutils.texi (mktemp invocation): Document it.
* NEWS: Likewise.
Fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548316.
</content>
</entry>
<entry>
<title>tests: enhance mktemp test</title>
<updated>2009-11-05T13:54:56Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-11-04T16:01:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e89a5e9b132a1f83e63a02ae8c6459fd6c41372b'/>
<id>urn:sha1:e89a5e9b132a1f83e63a02ae8c6459fd6c41372b</id>
<content type='text'>
* tests/misc/mktemp: Add more coverage.
</content>
</entry>
<entry>
<title>mktemp: don't leave file behind on write failure</title>
<updated>2009-11-05T13:53:21Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-11-04T21:02:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=41b3a8ed8b2480ca12baaa6c692a7fba3ebd53cf'/>
<id>urn:sha1:41b3a8ed8b2480ca12baaa6c692a7fba3ebd53cf</id>
<content type='text'>
* src/mktemp.c (main): Remove just-created file if stdout had
problems.
* bootstrap.conf (gnulib_modules): Add remove.
* tests/misc/close-stdout: Test it.
* NEWS: Document it.
</content>
</entry>
<entry>
<title>tests: factor 350 fail=0 initializations into test-lib.sh</title>
<updated>2009-10-30T11:50:12Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-10-30T09:50:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3c88587b2eadee11413f4207abbbf13af07c438d'/>
<id>urn:sha1:3c88587b2eadee11413f4207abbbf13af07c438d</id>
<content type='text'>
Run this command to remove the factored-out "fail=0" lines.
perl -ni -e '/^fail=0$/ or print' $(g grep -l '^fail=0$')
* tests/test-lib.sh: Initialize fail=0 here, not in 300+ scripts.
* tests/...: nearly all bourne shell scripts
Suggested by Eric Blake.
</content>
</entry>
</feed>
