Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fork() breaks in Windows #37

Open
szabgab opened this issue Feb 23, 2021 · 1 comment
Open

fork() breaks in Windows #37

szabgab opened this issue Feb 23, 2021 · 1 comment

Comments

@szabgab
Copy link
Collaborator

szabgab commented Feb 23, 2021

#!/usr/bin/env perl

use strict;
use warnings;
use autodie;

use parent qw( Test::Class );

sub test_fork : Tests() {
        my $pid = fork or do {
                exit;
        };

        waitpid $pid, 0;
}

__PACKAGE__->new()->runtests() if !caller;

^^ The above breaks in Windows. It gives the following error:

# 
# main->test_fork
Free to wrong pool 2db2a30 not 22829c0 at t/tcbug.pl line 11.
 at t/tcbug.pl line 10.
        Test::Class::_run_method(main=HASH(0x2f98a68), "test_fork", ARRAY(0x30ae5f8)) called at C:/Strawberry/perl/site/lib/Test/Class.pm line 402
        Test::Class::runtests(main=HASH(0x2f98a68)) called at t/tcbug.pl line 17
Dubious, test returned 5 (wstat 1280, 0x500)
No subtests run 

Test Summary Report
-------------------
t/tcbug.pl (Wstat: 1280 Tests: 0 Failed: 0)
  Non-zero exit status: 5
  Parse errors: No plan found in TAP output
Files=1, Tests=0,  2 wallclock secs ( 0.05 usr +  0.00 sys =  0.05 CPU)
Result: FAIL

I don’t have a fix at this time.

-FG

Original: https://rt.cpan.org/Public/Bug/Display.html?id=128491

@szabgab
Copy link
Collaborator Author

szabgab commented Feb 23, 2021

t/80-fork.t was added in b0286fa and disabled in 91475d3 after confirming the failure on Windows. Still no fix though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant