Skip to content

Commit 7892e70

Browse files
committed
types: fix Test::Simple tests
1 parent b31070b commit 7892e70

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

t/prove.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ for my $test (@SCHEDULE) {
14831483

14841484
SKIP:
14851485
{
1486-
skip $test->{skip_reason}, $test->{_planned} if $test->{skip};
1486+
skip "$test->{skip_reason}", int($test->{_planned}) if $test->{skip};
14871487

14881488
local $ENV{HARNESS_TIMER};
14891489

t/source_handler.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,10 @@ sub test_handler {
355355

356356
SKIP:
357357
{
358-
my $planned = 1;
358+
%int::; # init the coretype if missing
359+
my int $planned = 1;
359360
$planned += 1 + scalar @{ $test->{output} } if $test->{output};
360-
skip $test->{skip_reason}, $planned if $test->{skip};
361+
skip "$test->{skip_reason}", $planned if $test->{skip};
361362

362363
my $source = TAP::Parser::Source->new;
363364
$source->raw( $test->{raw} ) if $test->{raw};

0 commit comments

Comments
 (0)