Re: Smoke [5.11.0] 33500 FAIL(F) MSWin32 WinXP/.Net SP2 (x86/2 cpu)
[p5sagit/p5-mst-13.2.git] / ext / Win32 / t / GetCurrentThreadId.t
CommitLineData
34f7f30d 1use strict;
2use Config qw(%Config);
3use Test;
4use Win32;
5
34f7f30d 6plan tests => 1;
7
34f7f30d 8# This test relies on the implementation detail that the fork() emulation
9# uses the negative value of the thread id as a pseudo process id.
09ec0e73 10if ($Config{ccflags} =~ /PERL_IMPLICIT_SYS/) {
c762d24b 11 if (my $pid = fork) {
12 waitpid($pid, 0);
13 exit 0;
14 }
09ec0e73 15 ok(-$$, Win32::GetCurrentThreadId());
16} else {
17# here we just want to see something.
18 ok(Win32::GetCurrentThreadId() > 0);
19}