unshift @INC, '../lib';
}
- use Config;
- if (! $Config{'useithreads'}) {
- Test::skip_all(q/Perl not compiled with 'useithreads'/);
- }
-
# Import test.pl into its own package
{
package Test;
- require($ENV{PERL_CORE} ? 'test.pl' : 't/test.pl');
+ require($ENV{PERL_CORE} ? './test.pl' : './t/test.pl');
+ }
+
+ use Config;
+ if (! $Config{'useithreads'}) {
+ Test::skip_all(q/Perl not compiled with 'useithreads'/);
}
}
use threads;
use threads::shared;
+Test::watchdog(300); # In case we get stuck
+
my $TEST = 1;
ok($TEST++, 1, 'Loaded');
-Test::watchdog(60); # In case we get stuck
-
### Start of Testing ###
# cond_wait and cond_timedwait extended tests adapted from cond.t
unshift @INC, '../lib';
}
- use Config;
- if (! $Config{'useithreads'}) {
- Test::skip_all(q/Perl not compiled with 'useithreads'/);
- }
-
# Import test.pl into its own package
{
package Test;
- require($ENV{PERL_CORE} ? 'test.pl' : 't/test.pl');
+ require($ENV{PERL_CORE} ? './test.pl' : './t/test.pl');
+ }
+
+ use Config;
+ if (! $Config{'useithreads'}) {
+ Test::skip_all(q/Perl not compiled with 'useithreads'/);
}
eval {
use threads;
use threads::shared;
+Test::watchdog(60); # In case we get stuck
+
my $TEST = 1;
ok($TEST++, 1, 'Loaded');
-Test::watchdog(60); # In case we get stuck
-
### Start of Testing ###
# subsecond cond_timedwait extended tests adapted from wait.t
foreach (@wait_how) {
$test_type = "cond_timedwait [$_]";
- my $thr = threads->create(\&ctw_ok, $TEST, 0.05);
+ my $thr = threads->create(\&ctw_ok, $TEST, 0.1);
$TEST = $thr->join();
}