A current tarball of GNU libunistring has these test failures on NetBSD 10.0:

[1]   Abort trap (core dumped) "${@}" >>"${log_file}" 2>&1
FAIL: test-sigprocmask

[1]   Abort trap (core dumped) "${@}" >>"${log_file}" 2>&1
FAIL: test-pthread_sigmask1

These are known (and reported) NetBSD 10.0 bugs, see
https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00065.html .
But I need the test failures to disappear, so as to get an error-free CI.


2024-06-07  Bruno Haible  <br...@clisp.org>

        pthread_sigmask tests: Avoid failure due to known NetBSD 10.0 bug.
        * modules/pthread_sigmask-tests (Depends-on): Add test-xfail.
        (Makefile.am): Don't test test-pthread_sigmask1 on NetBSD.

2024-06-07  Bruno Haible  <br...@clisp.org>

        sigprocmask tests: Avoid failure due to known NetBSD 10.0 bug.
        * modules/sigprocmask-tests (Depends-on): Add test-xfail.
        (Makefile.am): Don't test test-sigprocmask on NetBSD.

>From 82b7ed95c772c71bc4a63cd0140bb1c6c6915897 Mon Sep 17 00:00:00 2001
From: Bruno Haible <br...@clisp.org>
Date: Fri, 7 Jun 2024 22:41:07 +0200
Subject: [PATCH 1/2] sigprocmask tests: Avoid failure due to known NetBSD 10.0
 bug.

* modules/sigprocmask-tests (Depends-on): Add test-xfail.
(Makefile.am): Don't test test-sigprocmask on NetBSD.
---
 ChangeLog                 | 6 ++++++
 modules/sigprocmask-tests | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 8c1f5b319a..4966f48f4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-06-07  Bruno Haible  <br...@clisp.org>
+
+	sigprocmask tests: Avoid failure due to known NetBSD 10.0 bug.
+	* modules/sigprocmask-tests (Depends-on): Add test-xfail.
+	(Makefile.am): Don't test test-sigprocmask on NetBSD.
+
 2024-06-07  Bruno Haible  <br...@clisp.org>
 
 	Update HACKING.
diff --git a/modules/sigprocmask-tests b/modules/sigprocmask-tests
index aba383e20a..8e6523e785 100644
--- a/modules/sigprocmask-tests
+++ b/modules/sigprocmask-tests
@@ -6,9 +6,13 @@ tests/macros.h
 Depends-on:
 inttypes
 sleep
+test-xfail
 
 configure.ac:
 
 Makefile.am:
+# Work around https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=57213
+if !OS_IS_NETBSD
 TESTS += test-sigprocmask
+endif
 check_PROGRAMS += test-sigprocmask
-- 
2.34.1

>From 7b88e36f17a0957ef3678408e37ca633f8112e72 Mon Sep 17 00:00:00 2001
From: Bruno Haible <br...@clisp.org>
Date: Fri, 7 Jun 2024 22:42:06 +0200
Subject: [PATCH 2/2] pthread_sigmask tests: Avoid failure due to known NetBSD
 10.0 bug.

* modules/pthread_sigmask-tests (Depends-on): Add test-xfail.
(Makefile.am): Don't test test-pthread_sigmask1 on NetBSD.
---
 ChangeLog                     | 6 ++++++
 modules/pthread_sigmask-tests | 7 ++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 4966f48f4c..b9cda80d82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-06-07  Bruno Haible  <br...@clisp.org>
+
+	pthread_sigmask tests: Avoid failure due to known NetBSD 10.0 bug.
+	* modules/pthread_sigmask-tests (Depends-on): Add test-xfail.
+	(Makefile.am): Don't test test-pthread_sigmask1 on NetBSD.
+
 2024-06-07  Bruno Haible  <br...@clisp.org>
 
 	sigprocmask tests: Avoid failure due to known NetBSD 10.0 bug.
diff --git a/modules/pthread_sigmask-tests b/modules/pthread_sigmask-tests
index d40a013687..00185a0d3e 100644
--- a/modules/pthread_sigmask-tests
+++ b/modules/pthread_sigmask-tests
@@ -8,11 +8,16 @@ Depends-on:
 inttypes
 sleep
 pthread-thread
+test-xfail
 
 configure.ac:
 
 Makefile.am:
-TESTS += test-pthread_sigmask1 test-pthread_sigmask2
+# Work around https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=57214
+if !OS_IS_NETBSD
+TESTS += test-pthread_sigmask1
+endif
+TESTS += test-pthread_sigmask2
 check_PROGRAMS += test-pthread_sigmask1 test-pthread_sigmask2
 test_pthread_sigmask1_LDADD = $(LDADD) @PTHREAD_SIGMASK_LIB@
 test_pthread_sigmask2_LDADD = $(LDADD) @PTHREAD_SIGMASK_LIB@ @LIBMULTITHREAD@
-- 
2.34.1

Reply via email to