chdir 't' if -d 't';
@INC = '../lib';
require Config; import Config;
- if ($Config{'ccflags'} !~ /-DUSE_THREADS\b/) {
+ if ($Config{'ccflags'} !~ /USE_THREADS\b/) {
print "1..0\n";
exit 0;
}
# test that sleep lets other thread run
$t = new Thread \&islocked,"ok 8\n";
-sleep 2;
+sleep 6;
print "ok 9";
join $t;