Skip to content

Commit

Permalink
tests: avoid false failure with partial locale info
Browse files Browse the repository at this point in the history
* tests/misc/numfmt.pl: Some systems with the fr_FR.UTF-8
locale installed, do not have a thousands grouping character defined.
In this case we skip the locale tests which depend on a non empty
grouping character.
  • Loading branch information
pixelb committed Mar 25, 2024
1 parent a51af43 commit c0f02a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/misc/numfmt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,11 @@
or die "Can't fork command: $!";
$lg = <LOC_GRP>;
close(LOC_GRP) || die "Failed to read locale grouping from printf";
if (! defined $lg || $lg eq '')
{
warn "skipping locale grouping tests as no grouping character\n";
$locale = 'C';
}
}

my @Locale_Tests =
Expand Down

0 comments on commit c0f02a8

Please sign in to comment.