summaryrefslogtreecommitdiff
path: root/t/run
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2018-11-09 21:21:30 -0500
committerJames E Keenan <jkeenan@cpan.org>2018-11-10 09:12:20 -0500
commit46814e9b310dbc8413ddba25028023aa4b8e6236 (patch)
tree9afa7e03983efab2d0d339a031ebfd9d5a559bac /t/run
parent402defd695e9a9bf33a68c8738cc08e5533fded4 (diff)
downloadperl-46814e9b310dbc8413ddba25028023aa4b8e6236.tar.gz
Ensure same count of tests on different OSes.
On OpenBSD (in at least one instance), $different was false, thereby causing 30 tests not to be run but without reflecting that skipping in the test count displayed at the end of output. Let's put this in a SKIP block similar to those used elsewhere in the file.
Diffstat (limited to 't/run')
-rw-r--r--t/run/locale.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/run/locale.t b/t/run/locale.t
index b51c2d2a13..e249c65c77 100644
--- a/t/run/locale.t
+++ b/t/run/locale.t
@@ -166,7 +166,8 @@ EOF
. " radix is marked UTF-8");
}
- if ($different) {
+ SKIP: {
+ skip("no locale available where LC_NUMERIC radix isn't '.'", 30) unless $different;
note("using the '$different' locale for LC_NUMERIC tests");
{
local $ENV{LC_NUMERIC} = $different;