diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-10-11 14:07:03 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-10-11 14:10:07 +0100 |
commit | d9d68dec8f4679ec61ddeb6bf83d123cec91a9f7 (patch) | |
tree | 5e31e38a7e793b81f0ea372902d04c6fe4ae0459 /dist | |
parent | 6af60d5fdae744e61d3a0d95ecbaf1c098867f14 (diff) | |
download | perl-d9d68dec8f4679ec61ddeb6bf83d123cec91a9f7.tar.gz |
Remove core @INC setting and chdir boilerplate from Thread::Queue's tests.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/Thread-Queue/t/01_basic.t | 4 | ||||
-rw-r--r-- | dist/Thread-Queue/t/02_refs.t | 4 | ||||
-rw-r--r-- | dist/Thread-Queue/t/03_peek.t | 4 | ||||
-rw-r--r-- | dist/Thread-Queue/t/04_errs.t | 7 | ||||
-rw-r--r-- | dist/Thread-Queue/t/05_extract.t | 4 | ||||
-rw-r--r-- | dist/Thread-Queue/t/06_insert.t | 4 | ||||
-rw-r--r-- | dist/Thread-Queue/t/07_lock.t | 4 | ||||
-rw-r--r-- | dist/Thread-Queue/t/08_nothreads.t | 7 |
8 files changed, 0 insertions, 38 deletions
diff --git a/dist/Thread-Queue/t/01_basic.t b/dist/Thread-Queue/t/01_basic.t index 6a0d8387e8..2983f0b700 100644 --- a/dist/Thread-Queue/t/01_basic.t +++ b/dist/Thread-Queue/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-Queue/t/02_refs.t b/dist/Thread-Queue/t/02_refs.t index 3a59b5e3b6..0cebdc1db3 100644 --- a/dist/Thread-Queue/t/02_refs.t +++ b/dist/Thread-Queue/t/02_refs.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-Queue/t/03_peek.t b/dist/Thread-Queue/t/03_peek.t index 1844c06dea..d543b59469 100644 --- a/dist/Thread-Queue/t/03_peek.t +++ b/dist/Thread-Queue/t/03_peek.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-Queue/t/04_errs.t b/dist/Thread-Queue/t/04_errs.t index 3479c83c9e..da8f979a38 100644 --- a/dist/Thread-Queue/t/04_errs.t +++ b/dist/Thread-Queue/t/04_errs.t @@ -1,13 +1,6 @@ use strict; use warnings; -BEGIN { - if ($ENV{'PERL_CORE'}){ - chdir('t'); - unshift(@INC, '../lib'); - } -} - use Thread::Queue; use Test::More 'tests' => 26; diff --git a/dist/Thread-Queue/t/05_extract.t b/dist/Thread-Queue/t/05_extract.t index 2773340932..de0e78bfd0 100644 --- a/dist/Thread-Queue/t/05_extract.t +++ b/dist/Thread-Queue/t/05_extract.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-Queue/t/06_insert.t b/dist/Thread-Queue/t/06_insert.t index 4f9c2b47ec..4f9d1dff5e 100644 --- a/dist/Thread-Queue/t/06_insert.t +++ b/dist/Thread-Queue/t/06_insert.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-Queue/t/07_lock.t b/dist/Thread-Queue/t/07_lock.t index 625159e97c..f9e258e092 100644 --- a/dist/Thread-Queue/t/07_lock.t +++ b/dist/Thread-Queue/t/07_lock.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-Queue/t/08_nothreads.t b/dist/Thread-Queue/t/08_nothreads.t index 7ac43481b3..006b275560 100644 --- a/dist/Thread-Queue/t/08_nothreads.t +++ b/dist/Thread-Queue/t/08_nothreads.t @@ -1,13 +1,6 @@ use strict; use warnings; -BEGIN { - if ($ENV{'PERL_CORE'}){ - chdir('t'); - unshift(@INC, '../lib'); - } -} - use Test::More 'tests' => 32; use Thread::Queue; |