Make the change to source_handler.t conditional on $ENV{PERL_CORE}.
authorNicholas Clark <nick@ccl4.org>
Wed, 30 Jun 2010 14:31:45 +0000 (15:31 +0100)
committerNicholas Clark <nick@ccl4.org>
Wed, 30 Jun 2010 14:31:45 +0000 (15:31 +0100)
175dcccfb62b30fa wrongly added '-I../../lib' unconditionally.

cpan/Test-Harness/t/source_handler.t

index 1287a9f..b16b9e2 100644 (file)
@@ -84,7 +84,7 @@ my %file = map { $_ => File::Spec->catfile( $dir, $_ ) }
         ],
         make_iterator => [
             {   name   => "valid executable",
-                raw    => [ $perl, '-I../../lib', '-It/lib', '-T', $file{source} ],
+                raw    => [ $perl, ($ENV{PERL_CORE} ? '-I../../lib' : ()), '-It/lib', '-T', $file{source} ],
                 iclass => 'TAP::Parser::Iterator::Process',
                 output        => [ '1..1', 'ok 1 - source' ],
                 assemble_meta => 1,