6 if (! $Config{'useithreads'}) {
7 print("1..0 # SKIP Perl not compiled with 'useithreads'\n");
12 use ExtUtils::testlib;
15 my ($id, $ok, $name) = @_;
17 # You have to do it this way or VMS will get confused.
19 print("ok $id - $name\n");
21 print("not ok $id - $name\n");
22 printf("# Failed test at line %d\n", (caller)[2]);
30 print("1..4\n"); ### Number of tests that will be run ###
32 $ENV{'PERL5_ITHREADS_STACK_SIZE'} = 128*4096;
38 ### Start of Testing ###
40 ok(2, threads->get_stack_size() == 128*4096,
41 '$ENV{PERL5_ITHREADS_STACK_SIZE}');
42 ok(3, threads->set_stack_size(144*4096) == 128*4096,
43 'Set returns previous value');
44 ok(4, threads->get_stack_size() == 144*4096,