]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
test: avoid false failure on OpenBSD
authorPádraig Brady <P@draigBrady.com>
Thu, 16 Apr 2026 20:41:40 +0000 (21:41 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 16 Apr 2026 20:41:40 +0000 (21:41 +0100)
* tests/numfmt/numfmt.pl: Use standard getopt error map,
needed on OpenBSD.
Reported by Bruno Haible.

tests/numfmt/numfmt.pl

index c6ed3f0736dfd339399be31e1525c5dc94c792e3..1c64319e40d9f21652727ff7c74d2d4f49e5f760 100755 (executable)
@@ -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}],