blob: 1ed1e96dc42c10a55a93696e980407f077ae2db2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
use strict;
use warnings;
BEGIN {
use Config;
if ($Config{'useithreads'}) {
print("1..0 # SKIP Perl compiled with 'useithreads'\n");
exit(0);
}
}
use ExtUtils::testlib;
sub ok {
my ($id, $ok, $name) = @_;
# You have to do it this way or VMS will get confused.
if ($ok) {
print("ok $id - $name\n");
} else {
print("not ok $id - $name\n");
printf("# Failed test at line %d\n", (caller)[2]);
}
return ($ok);
}
BEGIN {
$| = 1;
print("1..1\n"); ### Number of tests that will be run ###
};
eval 'use threads; 1';
ok(1, (($@ =~ /not built to support thread/)?1:0), "No threads support");
exit(0);
# EOF
|