This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Ensure same count of tests on different OSes.
authorJames E Keenan <jkeenan@cpan.org>
Sat, 10 Nov 2018 02:21:30 +0000 (21:21 -0500)
committerJames E Keenan <jkeenan@cpan.org>
Sat, 10 Nov 2018 14:12:20 +0000 (09:12 -0500)
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.

t/run/locale.t

index b51c2d2..e249c65 100644 (file)
@@ -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;