Skip to content

Commit

Permalink
add test case with fork to see how it behaves on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Feb 22, 2021
1 parent f3c62cf commit b0286fa
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions t/80-fork.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env perl

use strict;
use warnings;
use autodie;
use Test::More tests => 1;

use parent qw( Test::Class );

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

waitpid $pid, 0;
ok 1, 'in parent';
}

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

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

0 comments on commit b0286fa

Please sign in to comment.