6 BEGIN { $ENV{PERL_FORCE_TEST_THREADS} = 1 }
11 plan skip_all => 'Cannot test late loading on a non threaded perl'
12 unless $Config::Config{useithreads};
18 eval 'use VPIT::TestHelpers "threads";';
19 like $@, qr/^Test::More was loaded too soon/,
20 'cannot use the threads feature after Test::More was loaded';
25 eval { require Test::Leaner; 1 } or skip 'No Test::Leaner available' => 1;
26 eval 'use VPIT::TestHelpers "threads";';
27 like $@, qr/^Test::Leaner was loaded too soon/,
28 'cannot use the threads feature after Test::Leaner was loaded';