bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

immutable: Avoid test failures on MidnightBSD


From: Bruno Haible
Subject: immutable: Avoid test failures on MidnightBSD
Date: Sun, 07 Feb 2021 17:26:46 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

On MidnightBSD 1.1, I see this test failure:

FAIL: test-immutable.sh
=======================

Bus error
test-immutable.sh: test case 2 failed
Bus error
test-immutable.sh: test case 3 failed
FAIL test-immutable.sh (exit status: 1)

This patch fixes it.


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.

diff --git a/tests/test-immutable.c b/tests/test-immutable.c
index 4bee1f2..18ccf9d 100644
--- a/tests/test-immutable.c
+++ b/tests/test-immutable.c
@@ -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
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]