5 if ($ENV{'PERL_CORE'}){
7 unshift @INC, '../lib';
10 if (! $Config{'useithreads'}) {
11 print("1..0 # Skip: Perl not compiled with 'useithreads'\n");
16 use ExtUtils::testlib;
19 my ($id, $ok, $name) = @_;
21 # You have to do it this way or VMS will get confused.
23 print("ok $id - $name\n");
25 print("not ok $id - $name\n");
26 printf("# Failed test at line %d\n", (caller)[2]);
34 print("1..4\n"); ### Number of tests that will be run ###
36 $ENV{'PERL5_ITHREADS_STACK_SIZE'} = 128*4096;
42 ### Start of Testing ###
44 ok(2, threads->get_stack_size() == 128*4096,
45 '$ENV{PERL5_ITHREADS_STACK_SIZE}');
46 ok(3, threads->set_stack_size(144*4096) == 128*4096,
47 'Set returns previous value');
48 ok(4, threads->get_stack_size() == 144*4096,