<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc, 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-12-07T19:12:55Z</updated>
<entry>
<title>tests: avoid a false memory leak test failure</title>
<updated>2013-12-07T19:12:55Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-12-07T16:14:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=47a977ca99ad90f6fbe2efe84a17ac382a84ebf1'/>
<id>urn:sha1:47a977ca99ad90f6fbe2efe84a17ac382a84ebf1</id>
<content type='text'>
* tests/misc/shuf-reservoir.sh: Restrict the valgrind
"exit on leak" behavior to developer environments where
specific "lint" code is enabled to avoid inconsequential leaks.
</content>
</entry>
<entry>
<title>tests: fix shuf test verifying that -i and -e can not be combined</title>
<updated>2013-12-06T19:24:38Z</updated>
<author>
<name>Bernhard Voelker</name>
<email>mail@bernhard-voelker.de</email>
</author>
<published>2013-12-06T19:24:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b4f5dca24f3ca2eea6060cff9695d746c125747b'/>
<id>urn:sha1:b4f5dca24f3ca2eea6060cff9695d746c125747b</id>
<content type='text'>
Previously, the test triggered another error diagnostic:
  shuf: invalid input range ‘-e’
and therefore eclipsed the expected one:
  shuf: cannot combine -e and -i options

While at it, reindent a line with more than 80 characters, present
since the previous commit to silence sc_long_lines.

* tests/misc/shuf.sh: Pass a valid range to the -i option.
</content>
</entry>
<entry>
<title>shuf: --repeat, not --repetitions; default --head-count is infinity</title>
<updated>2013-12-06T17:55:55Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2013-12-06T17:55:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e1b753b3e3a3506746f5615cc1f6b5b22f564ccf'/>
<id>urn:sha1:e1b753b3e3a3506746f5615cc1f6b5b22f564ccf</id>
<content type='text'>
Original problem reported by Philipp Thomas in
&lt;http://bugs.gnu.org/16061&gt;.
* NEWS: shuf --repeat, not shuf --repetitions.
* doc/coreutils.texi (shuf invocation):
* src/shuf.c (usage, long_opts, main):
* tests/misc/shuf.sh:
Likewise.  Also, the default head-count is infinity.
</content>
</entry>
<entry>
<title>selinux: fix --context=CTX for cp and diagnose defaultcon() errors</title>
<updated>2013-12-05T00:18:36Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-12-04T19:10:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0013de3e603162081c4464ea1f7ad3285f633d78'/>
<id>urn:sha1:0013de3e603162081c4464ea1f7ad3285f633d78</id>
<content type='text'>
* src/selinux.h (ignorable_ctx_err): A new function used
to determine if a warning should be given after a call
to defaultcon() or restorecon().
* src/cp.c (main): Fix the setfscreatecon() call to use
the argument passed by the user.
* src/mkdir.c (make_ancestor): Show all but "ignoreable" errors
from defaultcon() and restorecon().
* tests/misc/selinux.sh: Add a test run as root in selinux enforcing
mode, to ensure cp --context=invalid is honored and fails immediately.
</content>
</entry>
<entry>
<title>shred: provide --remove methods to avoid excessive syncing</title>
<updated>2013-11-27T01:43:12Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-11-07T17:00:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=569b4edd18cddb5a8cc1f9549a7c1eed91b674f7'/>
<id>urn:sha1:569b4edd18cddb5a8cc1f9549a7c1eed91b674f7</id>
<content type='text'>
A sync operation is very often expensive.  For illustration
I timed the following python script which indicated that
each ext4 dir sync was taking about 2ms and 12ms, on an
SSD and traditional disk respectively.

  import os
  d=os.open(".", os.O_DIRECTORY|os.O_RDONLY)
  for i in range(1000):
     os.fdatasync(d)

So syncing for each character for each file can result
in significant delays.  Often this overhead is redundant,
as only the data is sensitive and not the file name.
Even if the names are sensitive, your file system may
employ synchronous metadata updates, which also makes
explicit syncing redundant.

* tests/misc/shred-remove.sh: Ensure all the new parameters
actually unlink the file.
* doc/coreutils.texi (shred invocation): Describe the new
parameters to the --remove option.
* src/shred.c (Usage): Likewise.
(main): Parse the new options.
(wipename): Inspect the new enum to see which of
the now optional tasks to perform.
* NEWS: Mention the new feature.
* THANKS.in: Add reporter Joseph D. Wagner
</content>
</entry>
<entry>
<title>stty: add support for mark/space parity</title>
<updated>2013-11-17T12:26:12Z</updated>
<author>
<name>Colin Leitner</name>
<email>colin.leitner@googlemail.com</email>
</author>
<published>2013-11-16T11:14:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4e37fc642f6dfda7b7d78531420355c9ad3a824d'/>
<id>urn:sha1:4e37fc642f6dfda7b7d78531420355c9ad3a824d</id>
<content type='text'>
This adds support for using a constant or "stick" parity bit.

* src/stty.c (usage): Mention the new flag.
* tests/misc/stty.sh: Adjust for the new flag.
* NEWS: Mention the improvement.
* docs/coreutils.texi (stty invocation): Mention the new flag.
</content>
</entry>
<entry>
<title>shred: avoid data write pass with --size=0</title>
<updated>2013-11-08T13:39:35Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-11-07T12:32:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=90181a5926e96f34b5ffff21b81a2874a846ff6f'/>
<id>urn:sha1:90181a5926e96f34b5ffff21b81a2874a846ff6f</id>
<content type='text'>
* src/shred.c (dopass): Exit early to avoid redundant heap
allocation, and more importantly avoiding a file sync
when we're writting no data, as this can have side effects.
Also with --verbose, this avoids printing of "pass status"
which could be confusing as to whether data was actually written.
* tests/misc/shred-passes.sh: Ensure the status for data
passes are not written when not doing any data writes.
</content>
</entry>
<entry>
<title>shred: fix direct I/O failures for last write to file</title>
<updated>2013-11-08T13:33:50Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-11-07T13:26:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c93d5b4aa7f675dabaebf5e4ee9583162e4c977d'/>
<id>urn:sha1:c93d5b4aa7f675dabaebf5e4ee9583162e4c977d</id>
<content type='text'>
Since direct I/O is now enabled with commit v8.21-139-gebaf961
we must handle the case where we write an odd size at the
end of a file (with --exact), or we specify an odd --size that
is larger than 64KiB, or in the very unlikely case of a device
with an odd size.  This issue was present since direct I/O
support was first added in v5.3.0, but latent since v6.0.
Theoretically this could have also been an issue after that on
systems which didn't have alignment constraints, but did have
size constraints for direct I/O.

* src/shred.c (dopass): On the first pass for a file, always
retry a write that fails with EINVAL, so we handle direct I/O
failure at either the start or end of the file.  Adjust the comment
as the original case is out of date and implicitly handled
by this more general fix.
* tests/misc/shred-exact.sh: Add a test case.
* NEWS: Add a "bug fix" entry for shred since there are
two related issues now fixed.
</content>
</entry>
<entry>
<title>maint: simplify printing of md5sum file names</title>
<updated>2013-11-01T22:34:24Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-11-01T16:14:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4d94e65d06772c41b8ac11e8b55f749c57c18f5b'/>
<id>urn:sha1:4d94e65d06772c41b8ac11e8b55f749c57c18f5b</id>
<content type='text'>
* src/md5sum.c (main): Add a comment as to why we continue
to escape names that do not have '\n' but do have '\\' chars.
(print_filename): Use the predetermined boolean to decide
whether to escape or not, so that in the common case we
can output the file name directly, rather than inspecting each char.
* tests/misc/md5sum.pl: Add case to show '\\' chars cause escaping.
* tests/misc/sha1sum.pl: Likewise.
</content>
</entry>
<entry>
<title>mktemp: with --quiet, only suppress I/O errors</title>
<updated>2013-10-06T16:59:44Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-10-06T16:26:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0c1d7917f19b4865544ab9f1b13dfcdfd4e65275'/>
<id>urn:sha1:0c1d7917f19b4865544ab9f1b13dfcdfd4e65275</id>
<content type='text'>
The reason for having a --quiet option is to
suppress only some subset of possible errors.
The most useful separation here is with usage/internal errors,
and errors due to file creation etc. (i.e. I/O errors).

* src/mktemp.c (main): Match the --help and info docs and
only suppress the file/dir creation error messages.
* tests/misc/mktemp.pl: Adjust accordingly.
</content>
</entry>
</feed>
