Re: [PATCH-revised] ext/Win32/t/Unicode.t failures on FAT32 under Cygwin
[p5sagit/p5-mst-13.2.git] / ext / Win32 / t / GetCurrentThreadId.t
CommitLineData
34f7f30d 1use strict;
2use Config qw(%Config);
3use Test;
4use Win32;
5
6unless ($Config{ccflags} =~ /PERL_IMPLICIT_SYS/) {
7 print "1..0 # Skip: Test requires fork emulation\n";
8 exit 0;
9}
10
11plan tests => 1;
12
13if (my $pid = fork) {
14 waitpid($pid, 0);
15 exit 0;
16}
17
18# This test relies on the implementation detail that the fork() emulation
19# uses the negative value of the thread id as a pseudo process id.
20ok(-$$, Win32::GetCurrentThreadId());