<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc, branch v9.5</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.5</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.5'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2024-03-26T20:09:35Z</updated>
<entry>
<title>tests: numfmt: fix false failures on some systems</title>
<updated>2024-03-26T20:09:35Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-03-26T19:17:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=606f54d157c3d9d558bdbe41da8d108993d86aeb'/>
<id>urn:sha1:606f54d157c3d9d558bdbe41da8d108993d86aeb</id>
<content type='text'>
* tests/misc/numfmt.pl: Verify that printf field width specs
count characters and not bytes before enabling locale tests.
This was seen on FreeBSD 14.0 and Solaris 11 OpenIndiana.
Reported by Bruno Haible
</content>
</entry>
<entry>
<title>tests: avoid false failure with partial locale info</title>
<updated>2024-03-25T18:40:53Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-03-25T18:27:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c0f02a8f5b164d72438168bce88328193ab39c34'/>
<id>urn:sha1:c0f02a8f5b164d72438168bce88328193ab39c34</id>
<content type='text'>
* tests/misc/numfmt.pl: Some systems with the fr_FR.UTF-8
locale installed, do not have a thousands grouping character defined.
In this case we skip the locale tests which depend on a non empty
grouping character.
</content>
</entry>
<entry>
<title>env,kill,timeout: support unnamed signals</title>
<updated>2024-03-13T16:15:35Z</updated>
<author>
<name>Grisha Levit</name>
<email>grishalevit@gmail.com</email>
</author>
<published>2024-01-25T19:52:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b8d1b00e21a86270fbbe5903a41319894db266df'/>
<id>urn:sha1:b8d1b00e21a86270fbbe5903a41319894db266df</id>
<content type='text'>
Some signals with values less that the max signal number for the system
do not have defined names.  For example, currently on amd64 Linux,
signals 32 and 33 do not have defined names, and Android has a wider
gap of undefined names where it reserves some realtime signals.

Previously the signal listing in env ended up reusing the name
of the last printed valid signal (the repeated HUP below):

    $ env --list-signal-handling true
    HUP        ( 1): IGNORE
    HUP        (32): BLOCK
    HUP        (38): IGNORE

..and the corresponding signal numbers were rejected as operands for the
env, kill, and timeout commands.

This patch removes the requirement that sig2str returns 0 for a signal
number associated with an operand.  This allows unnamed signals to be in
the sets `env' attempts to manipulate when a --*-signal option is used
with no argument, and kill(1) and timeout(1) to send such unnamed
signals.

* src/operand2sig.c (operand2sig): Drop signame argument, accept all
signal numbers &lt;= SIGNUM_BOUND.  All callers updated.
* src/env.c (parse_signal_action_params, reset_signal_handlers)
(parse_block_signal_params, set_signal_proc_mask)
(list_signal_handling): Accept all signal numbers &lt;= SIGNUM_BOUND,
use SIG%d for printing if necessary.
* src/kill.c (list_signals, main): Likewise.
(send_signals): Check errno from kill(3) for bad signo.
* src/timeout.c (main): Update operand2sig call.
* tests/misc/kill.sh: Test listing all signal numbers.
* NEWS: Mention the improvement.
</content>
</entry>
<entry>
<title>mktemp: fix template diagnostic with --suffix</title>
<updated>2024-02-27T14:59:33Z</updated>
<author>
<name>lvgenggeng</name>
<email>lvgenggeng@uniontech.com</email>
</author>
<published>2024-02-27T01:41:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e397ba1a31b99dbe4460e1aa8124786d487451c1'/>
<id>urn:sha1:e397ba1a31b99dbe4460e1aa8124786d487451c1</id>
<content type='text'>
* src/mktemp.c (main): When --suffix is specified, TEMPLATE
points to the meraged buffer DEST_NAME. As X's in the suffix are
not significant to the generated random characters, the diagnostic
for too few X's should only refer to the template portion.
* tests/misc/mktemp.pl: Adjust accordingly.
* NEWS: Mention the bug fix.
</content>
</entry>
<entry>
<title>tests: move join tests to their own directory</title>
<updated>2024-02-27T14:27:04Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-02-27T14:12:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f3bcb59ebdb4705c8034c01e25758f6eff71df51'/>
<id>urn:sha1:f3bcb59ebdb4705c8034c01e25758f6eff71df51</id>
<content type='text'>
* tests/misc/join-utf8.sh: Move to tests/join
since there are now multiple join tests.
* tests/misc/join.pl: Likewise.
</content>
</entry>
<entry>
<title>tests: simplify treatment of the $LOCALE_FR_UTF8 variable</title>
<updated>2024-02-27T14:27:04Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-02-27T14:05:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=79c628901dbff7d4315658187fdff20c4f5e4ade'/>
<id>urn:sha1:79c628901dbff7d4315658187fdff20c4f5e4ade</id>
<content type='text'>
* tests/df/problematic-chars.sh: Rely on gnulib setting
this to "none" where not usable.
* tests/misc/sleep.sh: Likewise.
* tests/printf/printf-mb.sh: Likewise.
* tests/printf/printf-quote.sh: Likewise.
* tests/sort/sort-debug-keys.sh: Likewise.
</content>
</entry>
<entry>
<title>join: avoid test failure on systems with no French UTF-8 locale</title>
<updated>2024-02-27T14:26:35Z</updated>
<author>
<name>Bruno Haible</name>
<email>bruno@clisp.org</email>
</author>
<published>2024-02-26T21:33:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f2e70e2d197dc3fd8a54276dd31362e7f1ab4d21'/>
<id>urn:sha1:f2e70e2d197dc3fd8a54276dd31362e7f1ab4d21</id>
<content type='text'>
* tests/misc/join-utf8.sh: Test the value of LOCALE_FR_UTF8 against
'none', not against a missing value.
Fixes https://bugs.gnu.org/69418
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2024-01-01T13:27:23Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-01-01T13:22:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a966dcdb69e2f49f2587e1b7d4ade7efcff29f40'/>
<id>urn:sha1:a966dcdb69e2f49f2587e1b7d4ade7efcff29f40</id>
<content type='text'>
Update to latest gnulib with new copyright year.
Run "make update-copyright" and then...

* gnulib: Update included in this commit as copyright years
are the only change from the previous gnulib commit.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Manually update copyright year,
until we fully sync with gnulib at a later stage.
* tests/sample-test: Adjust to use the single most recent year.
</content>
</entry>
<entry>
<title>tests: numfmt: fix test related to lower case 'k' SI unit</title>
<updated>2023-12-29T18:04:36Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-12-27T23:37:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=76ec516242679372f2c9891770335db17cbd9f7e'/>
<id>urn:sha1:76ec516242679372f2c9891770335db17cbd9f7e</id>
<content type='text'>
* tests/misc/numfmt.pl: Following on from v9.4-86-g615167cc4,
adjust this test accordingly.  This test was being skipped
on some systems, and so only noticed now.
Reported by Jim Meyering.
</content>
</entry>
<entry>
<title>tests: run locale tests on more systems</title>
<updated>2023-12-29T18:04:29Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2023-12-27T22:47:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ebb985dc410584c21cfd5a3fbcd2622346cecfa6'/>
<id>urn:sha1:ebb985dc410584c21cfd5a3fbcd2622346cecfa6</id>
<content type='text'>
* tests/misc/numfmt.pl: Determine the thousands grouping character
in use, rather than skipping locale tests when it's not a space.
For example fr_FR.UTF-8 uses "NARROW NO-BREAK SPACE" as the grouping
char on modern glibc systems at least.
* tests/sort/sort-h-thousands-sep.sh: Likewise.
</content>
</entry>
</feed>
