]> Savannah Git Hosting - gnulib.git/commitdiff
sigdescr_np tests: Avoid test failure on glibc/sparc.
authorBruno Haible <bruno@clisp.org>
Sun, 25 Jun 2023 16:40:19 +0000 (18:40 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 1 Jul 2023 08:31:32 +0000 (10:31 +0200)
* tests/test-sigdescr_np.c (main): Accept the glibc result for SIGEMT.
* doc/glibc-functions/sigdescr_np.texi: Mention two glibc deficiencies.

ChangeLog
doc/glibc-functions/sigdescr_np.texi
tests/test-sigdescr_np.c

index ec723a64fb45e7b870b826207d4383db1605d4a7..1b643c0eac566225e38a2a2847e91f87fd19d177 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-06-25  Bruno Haible  <bruno@clisp.org>
+
+       sigdescr_np tests: Avoid test failure on glibc/sparc.
+       * tests/test-sigdescr_np.c (main): Accept the glibc result for SIGEMT.
+       * doc/glibc-functions/sigdescr_np.texi: Mention two glibc deficiencies.
+
 2023-06-25  Bruno Haible  <bruno@clisp.org>
 
        strerrorname_np: Work around glibc bug on PowerPC, SPARC systems.
index 2bd2633b5d736c72763332e85d0238de093f129d..123b16201363d88c6a133fcab9cc5a765d2bc3b7 100644 (file)
@@ -21,6 +21,12 @@ glibc 2.31, macOS 11.1, FreeBSD 13.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+The description of SIGCHLD is wrong on some platforms:
+glibc.
+@item
+The description of SIGEMT is completely unintelligible on some platforms:
+glibc.
 @end itemize
 
 Note: This function is hardly useful, because it returns English strings, not
index 741fcb3f3a2fa6ee08cdc4c08bf4df5c5718aded..c816f6c64d09c972ed5b7a177f8cd74cecd188c1 100644 (file)
@@ -126,9 +126,11 @@ main (void)
   #ifdef SIGDANGER
   ASSERT (strcmp (sigdescr_np (SIGDANGER), "Swap space nearly exhausted") == 0);
   #endif
-  /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, AIX, IRIX, Cygwin, mingw */
+  /* glibc, Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, AIX, IRIX, Cygwin, mingw */
   #ifdef SIGEMT
-  ASSERT (strcmp (sigdescr_np (SIGEMT), "Instruction emulation needed") == 0);
+  ASSERT (strcmp (sigdescr_np (SIGEMT), "Instruction emulation needed") == 0
+          /* This completely unintelligible message is seen in glibc.  */
+          || strcmp (sigdescr_np (SIGEMT), "EMT trap") == 0);
   #endif
   /* Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix */
   #if defined SIGINFO && SIGINFO != SIGPWR