<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/ls, branch v9.8</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.8</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.8'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2025-09-22T10:23:50Z</updated>
<entry>
<title>tests: ls: avoid alignment check with non printable characters</title>
<updated>2025-09-22T10:23:50Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-09-21T23:18:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b8b486dc32f26743a8971104992ca8fe2a4c4e5c'/>
<id>urn:sha1:b8b486dc32f26743a8971104992ca8fe2a4c4e5c</id>
<content type='text'>
* tests/ls/block-size.sh: Skip the case where there are
non-printable characters in ls' output, which is the case
with NBSP thousands separators on FreeBSD 11 and 12.
We may drop the MBSW_REJECT_UNPRINTABLE in future from
ls and numfmt, but for now avoid these characters in the test.
Reported by Bruno Haible.
</content>
</entry>
<entry>
<title>ls: fix alignment with locale formatted --size</title>
<updated>2025-08-31T18:25:38Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-08-31T13:29:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ebd670e7eb2d3e5c0dadac68efcf37f79958c4d5'/>
<id>urn:sha1:ebd670e7eb2d3e5c0dadac68efcf37f79958c4d5</id>
<content type='text'>
Fix allocated size alignment in locales with multi-byte grouping chars.
Tested with: LC_ALL=sv_SE.utf8 ls --size --block-size=\'k

* src/ls.c (print_file_name_and_frills): Don't rely on
printf("%*s", width, string) to pad multi-byte strings appropriately.
Instead work out the padding required and use:
printf("%*s%s", padding, "", string) to pad multi-byte appropriately.
* tests/ls/block-size.sh: Add a test case.
* NEWS: Mention the bug fix.
Fixes https://bugs.gnu.org/79347
</content>
</entry>
<entry>
<title>tests: fix false failure with constrained setfacl</title>
<updated>2025-04-21T10:48:33Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-04-21T10:48:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=948f4713fd66719d35f510087801aa54d00364ad'/>
<id>urn:sha1:948f4713fd66719d35f510087801aa54d00364ad</id>
<content type='text'>
* tests/ls/acl.sh: In constrained environments, like with
setxattr() disabled for example, require_acl_ does not
check for the required functionality, so use the more
stringent require_setfacl_ instead.
Reported at https://github.com/NixOS/nixpkgs/issues/394953
</content>
</entry>
<entry>
<title>tests: remove use of unprotected 'set'</title>
<updated>2025-01-20T15:21:58Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-20T15:21:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=dcc896e6c3d7fdcb75f493e216f94a2af558740b'/>
<id>urn:sha1:dcc896e6c3d7fdcb75f493e216f94a2af558740b</id>
<content type='text'>
* cfg.mk (sc_prohibit_bare_set): A new syntax check to
ensure we protect use of set with '--', so that args
beginning with '-' are not interpreted as options,
and if no args are present, all existing args are cleared.
* tests/cp/symlink-slash.sh: Add -- to unprotected use of set.
* tests/ls/ls-time.sh: Likewise.
* tests/ls/symlink-slash.sh: Likewise.
* tests/mkdir/perm.sh: Likewise.
* tests/mkdir/selinux.sh: Likewise.
* tests/mkdir/smack-no-root.sh: Likewise.
* tests/mkdir/smack-root.sh: Likewise.
* tests/mv/part-hardlink.sh: Likewise.
* tests/nice/nice.sh: Likewise.
* tests/stty/stty-row-col.sh: Likewise.
</content>
</entry>
<entry>
<title>tests: fix typo in tests/ls/ls-time.sh</title>
<updated>2025-01-19T16:36:59Z</updated>
<author>
<name>Daniel Hofstetter</name>
<email>dhofstet@gmail.com</email>
</author>
<published>2025-01-19T16:31:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e6117526c3a46b46a1873c18f14bbce5e6acd557'/>
<id>urn:sha1:e6117526c3a46b46a1873c18f14bbce5e6acd557</id>
<content type='text'>
* tests/ls/ls-time.sh: s/--sort-name -t/-t --sort=name/.
</content>
</entry>
<entry>
<title>ls: fix crash with --context</title>
<updated>2025-01-18T13:14:29Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-17T17:29:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=915004f403cb25fadb207ddfdbe6a2f43bd44fac'/>
<id>urn:sha1:915004f403cb25fadb207ddfdbe6a2f43bd44fac</id>
<content type='text'>
* src/ls.c (main): Flag that we need to stat()
if we're going to get security context (call file_has_aclinfo_cache).
(file_has_aclinfo_cache): Be defensive and only lookup the device
for the file if the stat has been performed.
(has_capability_cache): Likewise.
* tests/ls/selinux-segfault.sh: Add a test case.
* NEWS: Mention the bug fix.
Reported by Bruno Haible.
</content>
</entry>
<entry>
<title>tests: avoid false failure with many mountpoints</title>
<updated>2025-01-15T17:07:19Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-15T11:52:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4bb1fc24454e9c31c32f7be7b9970e97de38d4a5'/>
<id>urn:sha1:4bb1fc24454e9c31c32f7be7b9970e97de38d4a5</id>
<content type='text'>
* tests/ls/readdir-mountpoint-inode.sh: Only take the first 64.
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2025-01-01T09:33:08Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-01T09:14:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=28b176085f04a6227d7fadd28a129b5cb02dfbf5'/>
<id>urn:sha1:28b176085f04a6227d7fadd28a129b5cb02dfbf5</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: Likewise.
* tests/sample-test: Adjust to use the single most recent year.
</content>
</entry>
<entry>
<title>tests: avoid false failure with unicode decomposed file systems</title>
<updated>2024-11-24T12:59:42Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-11-24T12:51:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cb2774501d7a292900a8a547d6c7cdc62f90c7fb'/>
<id>urn:sha1:cb2774501d7a292900a8a547d6c7cdc62f90c7fb</id>
<content type='text'>
* tests/ls/dired.sh: macOS normalizes unicode characters to decomposed
(NFD) form when storing names in the file system, which breaks the
round-trip comparison employed by the test.  So instead use a character
which does not decompose; verified with:
  echo æ | uconv -f utf8 -t utf8 -x nfd | od -Ax -tx1z
</content>
</entry>
<entry>
<title>tests: ls: also test security context output for symlinks</title>
<updated>2024-11-12T11:43:45Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-11-12T11:34:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=fc0ea5cb87e893f0dc4bc36d606d63c4f3317c50'/>
<id>urn:sha1:fc0ea5cb87e893f0dc4bc36d606d63c4f3317c50</id>
<content type='text'>
* tests/ls/selinux.sh: Test symlinks as well as files.
</content>
</entry>
</feed>
