immutable: Avoid test failures on MidnightBSD.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Feb 2021 16:24:32 +0000 (17:24 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Feb 2021 16:24:32 +0000 (17:24 +0100)
* tests/test-immutable.c (install_segv_handler): On FreeBSD, install the
handler also for SIGBUS.

ChangeLog
tests/test-immutable.c

index 897bbe0daf32fd6ca7d832553b3b51f8993fc5ef..b6510cbd67f39c6ab67c89539eed0fa43c2d5ee1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-02-07  Bruno Haible  <bruno@clisp.org>
+
+       immutable: Avoid test failures on MidnightBSD.
+       * tests/test-immutable.c (install_segv_handler): On FreeBSD, install the
+       handler also for SIGBUS.
+
 2021-02-07  Bruno Haible  <bruno@clisp.org>
 
        c32is*: Avoid test failures on MidnightBSD.
index 4bee1f2b337326759a6c3061a4c8738cf29a6e5b..18ccf9dd0694fbe5124300938789d79455fda99c 100644 (file)
@@ -45,7 +45,7 @@ static void
 install_segv_handler (void)
 {
   signal (SIGSEGV, segv_handler);
-# if defined __APPLE__ && defined __MACH__
+# if (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__
   signal (SIGBUS, segv_handler);
 # endif
 }