]> Savannah Git Hosting - gnulib.git/commitdiff
canonicalize[-lgpl] tests: Fix test failure on musl libc.
authorBruno Haible <bruno@clisp.org>
Sun, 31 Mar 2024 19:31:34 +0000 (21:31 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Apr 2024 10:28:10 +0000 (12:28 +0200)
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.

ChangeLog
modules/canonicalize-lgpl-tests
tests/test-canonicalize-lgpl.c
tests/test-canonicalize.c

index 4ad78b2ef5c4802bf532899ea3c2b364b5198653..ec1873c694c2adf2a9a3c4b459f6770751f0b931 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+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
index 409ee7225b7a7c8ac0e08404d63dba1a2127242c..73a0e32abbbc7249a4d449f508f0c589e64b2493 100644 (file)
@@ -1,5 +1,4 @@
 Files:
-m4/musl.m4
 tests/test-canonicalize-lgpl.c
 tests/signature.h
 tests/null-ptr.h
@@ -11,7 +10,6 @@ same-inode
 symlink
 
 configure.ac:
-gl_MUSL_LIBC
 
 Makefile.am:
 TESTS += test-canonicalize-lgpl
index 1b2ad98f517327d9b690f33fae64441a038e582a..21211e5eac4d5565301e114a9267ed3b18ce036a 100644 (file)
@@ -262,9 +262,9 @@ main (void)
     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)
index 6763a525c9ecf70eba7e9ddfbdc7df3233c36427..5d19285c009b012b6b6a2d449a1310c0e90d4a9e 100644 (file)
@@ -394,9 +394,9 @@ main (void)
     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)