Skip to content

Broken subtest under forkprove in version 1.301001_022 and newer #1019

@kocoureasy

Description

@kocoureasy

Hello,
I found that is broken subtest run in forkprove when I use Test::More in version 1.301001_022 and newer.
This is test file as forkprove.t:

#!/bin/env perl

use strict;
use warnings;

use Test::More tests => 1;

subtest 'no compile-time warnings' => sub {
    my @warnings;
    local $SIG{'__WARN__'} = sub { push @warnings, $_[0] };

    require Test::More;;

    is_deeply(\@warnings, [], 'no warnings');
  }

I run this test script with this command forkprove -MTest::More forkprove.t

In version 1.301001_021 and oder worked properly.

Regards
Igor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions