X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Ffork.t;h=7318449a7c7a000276e4379389bdceaa3d64b24e;hb=584420f022db57225e9644b9c6668ff9f567984a;hp=588d88b15386779245f5c5f25a5ce8e03a93caf4;hpb=aeecf691f59fe1423b7011655dd5de7d5fbd2192;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/fork.t b/t/op/fork.t index 588d88b..7318449 100755 --- a/t/op/fork.t +++ b/t/op/fork.t @@ -6,12 +6,7 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; require Config; import Config; - unless ($Config{'d_fork'} - or (($^O eq 'MSWin32' || $^O eq 'NetWare') and $Config{useithreads} - and $Config{ccflags} =~ /-DPERL_IMPLICIT_SYS/ -# and !defined $Config{'useperlio'} - )) - { + unless ($Config{'d_fork'} or $Config{'d_pseudofork'}) { print "1..0 # Skip: no fork\n"; exit 0; } @@ -250,6 +245,7 @@ EXPECT ######## $| = 1; use Cwd; +my $cwd = cwd(); # Make sure we load Win32.pm while "../lib" still works. $\ = "\n"; my $dir; if (fork) { @@ -462,3 +458,9 @@ if ($pid == 0) { } EXPECT 1 +######## +# [perl #39145] Perl_dounwind() crashing with Win32's fork() emulation +sub { @_ = 3; fork ? die "1\n" : die "1\n" }->(2); +EXPECT +1 +1