$| = 1;
require Config;
- if (!$Config::Config{useithreads}) {
- print "1..0 # Skip: no ithreads\n";
- exit 0;
- }
+ skip_all_without_config('useithreads');
skip_all_if_miniperl("no dynamic loading on miniperl, no threads");
plan(6);
my $dir;
SKIP: {
+ skip "telldir or seekdir not defined on this platform", 5
+ if !$Config::Config{d_telldir} || !$Config::Config{d_seekdir};
my $skip = sub {
chdir($dir);
chdir updir;
$dir = catdir getcwd(), "thrext$$" . int rand() * 100000;
- rmtree($dir);
+ rmtree($dir) if -d $dir;
mkdir($dir);
# Create a dir structure like this: