Subject: bug#63533: test-mbrlen5.sh failure

From: Carlo Marcelo Arenas Belón <[email-masked]>
Date: Wed, 17 May 2023 21:46:52 -0700

On Wed, May 17, 2023 at 09:09:02PM -0400, Caleb Zulawski wrote:
> 
> Isn’t this test too strict, then?

It shouldn't had been included with the release; the attached patch
should help with that for future releases.

> Or is there some way to disable/allow failure for this particular test?

In your build process you could force to skip by doing :

  echo "exit 77" > gnulib-tests/test-mbrlen5.sh

> It seems like it should not prevent a build.

it does not; the build finished, and the tests for grep finished successfully
as well.

if you read your log output, will see this is part of the gnulib tests.

Carlo
>From d1adf4035c89d4f215ccff48643df7784fbde5ba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= <[email-masked]>
Date: Tue, 16 May 2023 00:11:24 -0700
Subject: [PATCH] gnulib: avoid mbrlen-tests

Since e319a8 (grep: improve performance for older glibc, 2014-09-14)
gnulib fixes for known bugs in mbrlen that are triggered by n == 0 (found
in glibc <= 2.19), among others are not included, but new tests were added
with 1ab07af585 (mbrlen: Add tests., 2023-03-30).
---
 bootstrap.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bootstrap.conf b/bootstrap.conf
index ec48c37..51fc7da 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -18,6 +18,7 @@
 avoided_gnulib_modules='
   --avoid=lock-tests
   --avoid=mbrtowc-tests
+  --avoid=mbrlen-tests
   --avoid=update-copyright-tests
 '
 
-- 
2.39.2 (Apple Git-143)