On 16/04/2026 16:55, Bruno Haible wrote:
On OpenBSD 7.8, there is one test failure:

FAIL: tests/numfmt/numfmt

That's due to different getopt() error messages on OpenBSD.
Addressed with the attached.

cheers,
Padraig
From 1c1ccadf66f1ad4361d1e9773e006ff8814945ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <[email protected]>
Date: Thu, 16 Apr 2026 21:41:40 +0100
Subject: [PATCH] test: avoid false failure on OpenBSD

* tests/numfmt/numfmt.pl: Use standard getopt error map,
needed on OpenBSD.
Reported by Bruno Haible.
---
 tests/numfmt/numfmt.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/numfmt/numfmt.pl b/tests/numfmt/numfmt.pl
index c6ed3f073..1c64319e4 100755
--- a/tests/numfmt/numfmt.pl
+++ b/tests/numfmt/numfmt.pl
@@ -894,7 +894,8 @@ my @Tests =
      # A leading '-9...' must be treated as an invalid short option, not as
      # a negative positional argument.
      ['neg-arg-not-option', '--to=iec -9923868',
-             {ERR => "$prog: invalid option -- '9'\n" .
+             {ERR_SUBST => q!s/'9'/9/;s/unknown/invalid/!},
+             {ERR => "$prog: invalid option -- 9\n" .
                      "Try '$prog --help' for more information.\n"},
              {EXIT => 1}],
 
-- 
2.53.0

Reply via email to