summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avar@cpan.org>2014-06-21 17:57:40 +0000
committerÆvar Arnfjörð Bjarmason <avar@cpan.org>2014-06-21 17:58:43 +0000
commit43d7f0da895d00d0f557ad72549ddb3194763b55 (patch)
tree30c3341d95a37432a0ff126f51be50e8acffa95e /t
parent826af139e95c118234b3f5cbaeab5d162e476795 (diff)
downloadperl-43d7f0da895d00d0f557ad72549ddb3194763b55.tar.gz
Fix black Win32 smoke broken by my v5.21.1-11-g4077a6b (again)
Fix a silly bug in v5.21.1-12-g826af13, when $Q was false I added 12 extra test, but didn't declare them, do that.
Diffstat (limited to 't')
-rw-r--r--t/op/sprintf2.t9
1 files changed, 5 insertions, 4 deletions
diff --git a/t/op/sprintf2.t b/t/op/sprintf2.t
index 4116237b60..0a60f7bfa0 100644
--- a/t/op/sprintf2.t
+++ b/t/op/sprintf2.t
@@ -8,7 +8,11 @@ BEGIN {
require './test.pl';
}
-plan tests => 1406;
+# We'll run 12 extra tests (see below) if $Q is false.
+eval { my $q = pack "q", 0 };
+my $Q = $@ eq '';
+
+plan tests => 1406 + ($Q ? 0 : 12);
use strict;
use Config;
@@ -282,9 +286,6 @@ foreach my $n (2**1e100, -2**1e100, 2**1e100/2**1e100) { # +Inf, -Inf, NaN
}
# test %ll formats with and without HAS_QUAD
-eval { my $q = pack "q", 0 };
-my $Q = $@ eq '';
-
my @tests = (
[ '%lld' => [qw( 4294967296 -100000000000000 )] ],
[ '%lli' => [qw( 4294967296 -100000000000000 )] ],