+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.
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
/* Test of sigdescr_np() function.
- Copyright (C) 2020-2022 Free Software Foundation, Inc.
+ Copyright (C) 2020-2023 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#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