[perl #116971] avoid feeding manisort a bad @INC
authorTony Cook <tony@develop-help.com>
Tue, 14 Jan 2014 05:53:40 +0000 (16:53 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 14 Jan 2014 05:53:40 +0000 (16:53 +1100)
the C<< use TestInit qw(T) >> in manifest.t both changes to the
build tree *and* initializes $ENV{PERL5LIB} to "lib", so there's
no need fo runperl() to supply (an incorrect) -I.. when running
manisort.

t/porting/manifest.t

index b8c63c5..c367fc7 100644 (file)
@@ -71,7 +71,8 @@ SKIP: {
 
     my $result = runperl('progfile' => 'Porting/manisort',
                          'args'     => [ '-c', $manifest ],
-                         'stderr'   => 1);
+                         'stderr'   => 1,
+                         'nolib'    => 1 );
 
     like($result, qr/is sorted properly/, 'MANIFEST sorted properly');
 }