Regexp::DESTROY was only added in 5.8.1
[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
8if (my $pid = fork) {
9 waitpid($pid, 0);
10 exit 0;
11}
12
13# This test relies on the implementation detail that the fork() emulation
14# uses the negative value of the thread id as a pseudo process id.
09ec0e73 15if ($Config{ccflags} =~ /PERL_IMPLICIT_SYS/) {
16 ok(-$$, Win32::GetCurrentThreadId());
17} else {
18# here we just want to see something.
19 ok(Win32::GetCurrentThreadId() > 0);
20}