<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc, branch v8.6</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.6</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.6'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2010-10-14T07:23:51Z</updated>
<entry>
<title>tests: work around portability and clock-skew problems</title>
<updated>2010-10-14T07:23:51Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2010-10-14T06:39:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7324fba6754b840a5d1fb6ec0f4ee3efb9db5ff4'/>
<id>urn:sha1:7324fba6754b840a5d1fb6ec0f4ee3efb9db5ff4</id>
<content type='text'>
* tests/misc/ls-misc (push_ls_colors): Don't assume LS_COLORS
is set.  This part of the fix is by Jim Meyering.
(sl-dangle2, sl-dangle3, sl-dangle4, sl-dangle5): Don't assume
that newly-created files will have time stamps in the past.  They
might not, due to clock skew, if the file systems are remote.
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/21322/focus=21346
</content>
</entry>
<entry>
<title>split: fix reporting of read errors</title>
<updated>2010-10-07T19:08:16Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-10-07T12:12:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=758916b49e69836fcbd1e861e19edfced44e28ea'/>
<id>urn:sha1:758916b49e69836fcbd1e861e19edfced44e28ea</id>
<content type='text'>
The bug was introduced with commit 23f6d41f, 19-02-2003.

* src/split.c (bytes_split, lines_split, line_bytes_split):
Correctly check the return from full_read().
* tests/misc/split-fail: Ensure split fails when
it can't read its input.
* NEWS: Mention the fix.
</content>
</entry>
<entry>
<title>tests: refactor the stat-birthtime test to use retry_delay_</title>
<updated>2010-10-04T15:54:22Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-10-04T15:54:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6ad89f223313920a4f752015cb76c9905c363179'/>
<id>urn:sha1:6ad89f223313920a4f752015cb76c9905c363179</id>
<content type='text'>
* tests/misc/stat-birthtime: This recently added test
fits the pattern of requiring a delay to pass, so get
it to use retry_delay_()
</content>
</entry>
<entry>
<title>tests: output --version of program under test</title>
<updated>2010-10-01T21:43:23Z</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2010-10-01T21:43:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d4f304d7218b1ffd659684ae287a57beb297f2e7'/>
<id>urn:sha1:d4f304d7218b1ffd659684ae287a57beb297f2e7</id>
<content type='text'>
This touches all new tests added since commit b062bbd9, when
init.cfg was added.  Older tests still exist that could use
conversion, but we can address those later.

* tests/sample-test: Restore hint for --version output.
* tests/misc/stat-birthtime: Include --version if verbose.
* tests/misc/tr-case-class: Likewise.
* tests/misc/stat-mount: Likewise.
* tests/misc/sort-unique: Likewise.
* tests/misc/sort-benchmark-random: Likewise.
Suggested by Jim Meyering.
</content>
</entry>
<entry>
<title>stat: print timestamps to full resolution</title>
<updated>2010-10-01T16:43:41Z</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2010-09-30T22:42:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9069af45e691d1252c727da66aa4f3f3c7f1ea29'/>
<id>urn:sha1:9069af45e691d1252c727da66aa4f3f3c7f1ea29</id>
<content type='text'>
* src/stat.c (epoch_time): New function.
(print_stat): Use it for %[WXYZ].
* NEWS: Document this.
* tests/touch/60-seconds: Adjust test to match.
* tests/misc/stat-birthtime: Likewise.
</content>
</entry>
<entry>
<title>stat: support printing birthtime</title>
<updated>2010-10-01T16:43:25Z</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2010-09-30T22:31:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=abe5c1f9bc09753fd79e7a121c8ecfa917dfaddb'/>
<id>urn:sha1:abe5c1f9bc09753fd79e7a121c8ecfa917dfaddb</id>
<content type='text'>
* src/stat.c (print_stat): New %w and %W formats.
(do_stat): Include %w in default format.
(usage): Document new specifiers.
* doc/coreutils.texi (stat invocation): Likewise.
* NEWS: Likewise.
</content>
</entry>
<entry>
<title>tr: fix various issues with case conversion</title>
<updated>2010-09-29T10:05:12Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-09-27T06:16:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3f48829c2939e53c7e961a42d0749765dc076279'/>
<id>urn:sha1:3f48829c2939e53c7e961a42d0749765dc076279</id>
<content type='text'>
This valid translation spec aborted:
  LC_ALL=en_US.iso-8859-1 tr '[:upper:]- ' '[:lower:]_'
This invalid translation spec aborted:
  LC_ALL=en_US.iso-8859-1 tr '[:upper:] '  '[:lower:]'
This was caused by commit 6efd1046, 05-01-2008,
"Avoid tr case-conversion failure in some locales"

This misaligned conversion spec was allowed:
  LC_ALL=C tr 'A-Y[:lower:]' 'a-z[:upper:]'
This was caused by commit af5d0c36, 21-10-2007,
"tr: do not reject an unmatched [:lower:] or [:upper:] in SET1"

This misaligned spec was allowed by extending the class:
  LC_ALL=C tr '[:upper:] ' '[:lower:]'

* src/tr.c (validate_case_classes): A new function to check
alignment of case conversion classes.  Also it adjusts the
length of the sets so that locales with different numbers of
upper and lower case characters, don't cause issues.
(string2_extend): Disallow extending the case conversion
class as in the above example.  That is locale dependent
and most likely not what the user wants.
(validate): Do the simple test for "restricted" char classes
earlier, so we don't redundantly do more expensive validation.
(main): Remove the case class validation, and simplify.
* tests/misc/tr-case-class: A new test to test the various
alignment and locale issues, associated with case conversion.
* tests/misc/tr: Move case conversion tests to new tr-case-class.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the fixes.
</content>
</entry>
<entry>
<title>tests: fix a printf portability issue</title>
<updated>2010-09-20T14:23:20Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-09-20T14:23:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4727aab1b1964913cb83db65d59ba65c198d9d84'/>
<id>urn:sha1:4727aab1b1964913cb83db65d59ba65c198d9d84</id>
<content type='text'>
* tests/misc/sort-debug-keys: Don't depend on
printf supporting \xhh format, which isn't supported
by dash for example.  Also change from double quoted
strings to single quoted, when we don't need any
variable interpolation.
</content>
</entry>
<entry>
<title>tests: fix an erroneous stat failure with bind mounts</title>
<updated>2010-09-20T14:07:02Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-09-20T14:07:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f57cb371fa0a940f41163a27bf2d460c1a4d2d35'/>
<id>urn:sha1:f57cb371fa0a940f41163a27bf2d460c1a4d2d35</id>
<content type='text'>
* tests/misc/stat-mount: Don't try to correlate the
mount points output by df and stat, as they're similar,
but sometimes different in the presence of bind mounts.
* doc/coretuils.texi (stat invocation): Clarify the
bind mount difference between stat and df.
</content>
</entry>
<entry>
<title>tests: work around a failure with dash 0.5.4</title>
<updated>2010-09-07T16:33:16Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-09-07T14:53:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ea1b8bafc011689b17b3f732c4dc11f3c23fbdfe'/>
<id>urn:sha1:ea1b8bafc011689b17b3f732c4dc11f3c23fbdfe</id>
<content type='text'>
* tests/misc/env: Check that the shell can support
the operation, before filtering through `env`.
Note dash 0.5.5 is unaffected by this issue.
</content>
</entry>
</feed>
