bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: bug-gnulib@gnu.org
Subject: immutable: Avoid test failures on MidnightBSD
Date: Sun, 07 Feb 2021 17:26:46 +0100	[thread overview]
Message-ID: <55613869.8bhrIvpnCF@omega> (raw)

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	other threads:[~2021-02-07 16:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-07 16:26 Bruno Haible [this message]
2021-02-07 18:58 ` c-stack: Adjust for MidnightBSD Bruno Haible

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55613869.8bhrIvpnCF@omega \
    --to=bruno@clisp.org \
    --cc=bug-gnulib@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).