+2024-03-31 Bruno Haible <bruno@clisp.org>
+
+ canonicalize[-lgpl] tests: Fix test failure on musl libc.
+ Reported by Adept's Lab <adeptslab@gmail.com> via Pádraig Brady at
+ <https://lists.gnu.org/archive/html/bug-coreutils/2024-03/msg00086.html>.
+ * tests/test-canonicalize-lgpl.c (main): Don't special-case "//"
+ handling for musl libc.
+ * tests/test-canonicalize.c (main): Likewise.
+ * modules/canonicalize-lgpl-tests (Files): Remove m4/musl.m4.
+ (configure.ac): Don't invoke gl_MUSL_LIBC.
+
2024-03-29 Paul Eggert <eggert@cs.ucla.edu>
intprops: pacify GCC < 10 -Wsign-compare
Files:
-m4/musl.m4
tests/test-canonicalize-lgpl.c
tests/signature.h
tests/null-ptr.h
symlink
configure.ac:
-gl_MUSL_LIBC
Makefile.am:
TESTS += test-canonicalize-lgpl
ASSERT (stat ("/", &st1) == 0);
ASSERT (stat ("//", &st2) == 0);
bool same = psame_inode (&st1, &st2);
-#if defined __MVS__ || defined MUSL_LIBC
- /* On IBM z/OS and musl libc, "/" and "//" both canonicalize to
- themselves, yet they both have st_dev == st_ino == 1. */
+#if defined __MVS__
+ /* On IBM z/OS, "/" and "//" both canonicalize to themselves, yet they both
+ have st_dev == st_ino == 1. */
same = false;
#endif
if (same)
ASSERT (stat ("/", &st1) == 0);
ASSERT (stat ("//", &st2) == 0);
bool same = psame_inode (&st1, &st2);
-#if defined __MVS__ || defined MUSL_LIBC
- /* On IBM z/OS and musl libc, "/" and "//" both canonicalize to
- themselves, yet they both have st_dev == st_ino == 1. */
+#if defined __MVS__
+ /* On IBM z/OS, "/" and "//" both canonicalize to themselves, yet they both
+ have st_dev == st_ino == 1. */
same = false;
#endif
if (same)