Message-ID: <
20080313124751.GX79799@plum.flirble.org>
Fixes test failures introduced by #33480 in non-fork()-enabled builds.
p4raw-id: //depot/perl@33543
plan tests => 1;
-if (my $pid = fork) {
- waitpid($pid, 0);
- exit 0;
-}
-
# This test relies on the implementation detail that the fork() emulation
# uses the negative value of the thread id as a pseudo process id.
if ($Config{ccflags} =~ /PERL_IMPLICIT_SYS/) {
+ if (my $pid = fork) {
+ waitpid($pid, 0);
+ exit 0;
+ }
ok(-$$, Win32::GetCurrentThreadId());
} else {
# here we just want to see something.