From: Nicholas Clark Date: Sun, 11 Oct 2009 13:09:02 +0000 (+0100) Subject: Remove core @INC setting and chdir boilerplate from Thread::Semaphore's tests. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=794ae82d17ef6f7770c42b070af5c40bc4bf19cb;p=p5sagit%2Fp5-mst-13.2.git Remove core @INC setting and chdir boilerplate from Thread::Semaphore's tests. --- diff --git a/dist/Thread-Semaphore/t/01_basic.t b/dist/Thread-Semaphore/t/01_basic.t index 06fc2b2..c5670bd 100644 --- a/dist/Thread-Semaphore/t/01_basic.t +++ b/dist/Thread-Semaphore/t/01_basic.t @@ -2,10 +2,6 @@ use strict; use warnings; BEGIN { - if ($ENV{'PERL_CORE'}){ - chdir('t'); - unshift(@INC, '../lib'); - } use Config; if (! $Config{'useithreads'}) { print("1..0 # SKIP Perl not compiled with 'useithreads'\n"); diff --git a/dist/Thread-Semaphore/t/02_errs.t b/dist/Thread-Semaphore/t/02_errs.t index 06f0b93..45b0aa9 100644 --- a/dist/Thread-Semaphore/t/02_errs.t +++ b/dist/Thread-Semaphore/t/02_errs.t @@ -1,13 +1,6 @@ use strict; use warnings; -BEGIN { - if ($ENV{'PERL_CORE'}){ - chdir('t'); - unshift(@INC, '../lib'); - } -} - use Thread::Semaphore; use Test::More 'tests' => 12; diff --git a/dist/Thread-Semaphore/t/03_nothreads.t b/dist/Thread-Semaphore/t/03_nothreads.t index 58bcb04..f0454be 100644 --- a/dist/Thread-Semaphore/t/03_nothreads.t +++ b/dist/Thread-Semaphore/t/03_nothreads.t @@ -1,13 +1,6 @@ use strict; use warnings; -BEGIN { - if ($ENV{'PERL_CORE'}){ - chdir('t'); - unshift(@INC, '../lib'); - } -} - use Test::More 'tests' => 4; use Thread::Semaphore;