use strict;
use warnings;
+use Config;
BEGIN {
if (!-c "/dev/null") {
}
{
- local $ENV{PERLDB_OPTS} = "ReadLine=0 NonStop=1";
- my $output = runperl(switches => [ '-dt' ], progfile => '../lib/perl5db/t/symbol-table-bug');
- like($output, qr/Undefined symbols 0/, 'there are no undefined values in the symbol table when running with thread support');
+ if ( $Config{usethreads} ) {
+ local $ENV{PERLDB_OPTS} = "ReadLine=0 NonStop=1";
+ my $output = runperl(switches => [ '-dt' ], progfile => '../lib/perl5db/t/symbol-table-bug');
+ like($output, qr/Undefined symbols 0/, 'there are no undefined values in the symbol table when running with thread support');
+ } else {
+ skip("This perl is not threaded, skipping threaded debugger tests");
+ }
}
# clean up.