From: Steve Peters Date: Sun, 9 Oct 2005 15:32:29 +0000 (+0000) Subject: Add standard core test header to Test::Builder::Tester tests. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c0888b2172d1f2ba9efb15c34b86c07026be9abe;p=p5sagit%2Fp5-mst-13.2.git Add standard core test header to Test::Builder::Tester tests. p4raw-id: //depot/perl@25719 --- diff --git a/lib/Test/Simple/t/tbt_01basic.t b/lib/Test/Simple/t/tbt_01basic.t index 769a1c4..9e23576 100644 --- a/lib/Test/Simple/t/tbt_01basic.t +++ b/lib/Test/Simple/t/tbt_01basic.t @@ -1,5 +1,12 @@ #!/usr/bin/perl +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't'; + @INC = '../lib'; + } +} + use Test::Builder::Tester tests => 9; use Test::More; diff --git a/lib/Test/Simple/t/tbt_02fhrestore.t b/lib/Test/Simple/t/tbt_02fhrestore.t index e373571..a9cf36e 100644 --- a/lib/Test/Simple/t/tbt_02fhrestore.t +++ b/lib/Test/Simple/t/tbt_02fhrestore.t @@ -1,5 +1,12 @@ #!/usr/bin/perl +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't'; + @INC = '../lib'; + } +} + use Test::Builder::Tester tests => 4; use Test::More; use Symbol; diff --git a/lib/Test/Simple/t/tbt_03die.t b/lib/Test/Simple/t/tbt_03die.t index b9dba80..ad40ac4 100644 --- a/lib/Test/Simple/t/tbt_03die.t +++ b/lib/Test/Simple/t/tbt_03die.t @@ -1,5 +1,12 @@ #!/usr/bin/perl +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't'; + @INC = '../lib'; + } +} + use Test::Builder::Tester tests => 1; use Test::More; diff --git a/lib/Test/Simple/t/tbt_04line_num.t b/lib/Test/Simple/t/tbt_04line_num.t index 9e8365a..b2dcd1d 100644 --- a/lib/Test/Simple/t/tbt_04line_num.t +++ b/lib/Test/Simple/t/tbt_04line_num.t @@ -1,5 +1,12 @@ #!/usr/bin/perl +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't'; + @INC = '../lib'; + } +} + use Test::More tests => 3; use Test::Builder::Tester; diff --git a/lib/Test/Simple/t/tbt_05faildiag.t b/lib/Test/Simple/t/tbt_05faildiag.t index 59ad721..0ae875a 100644 --- a/lib/Test/Simple/t/tbt_05faildiag.t +++ b/lib/Test/Simple/t/tbt_05faildiag.t @@ -1,5 +1,12 @@ #!/usr/bin/perl +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't'; + @INC = '../lib'; + } +} + use Test::Builder::Tester tests => 5; use Test::More; diff --git a/lib/Test/Simple/t/tbt_06errormess.t b/lib/Test/Simple/t/tbt_06errormess.t index ed8ebf5..e7625ea 100644 --- a/lib/Test/Simple/t/tbt_06errormess.t +++ b/lib/Test/Simple/t/tbt_06errormess.t @@ -1,5 +1,12 @@ #!/usr/bin/perl -w +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't'; + @INC = '../lib'; + } +} + use Test::More tests => 8; use Symbol; use Test::Builder; diff --git a/lib/Test/Simple/t/tbt_07args.t b/lib/Test/Simple/t/tbt_07args.t index 846a21e..8e80234 100644 --- a/lib/Test/Simple/t/tbt_07args.t +++ b/lib/Test/Simple/t/tbt_07args.t @@ -1,5 +1,12 @@ #!/usr/bin/perl -w +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't'; + @INC = '../lib'; + } +} + use Test::More tests => 18; use Symbol; use Test::Builder;