New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t/run/runenv.t: Guard against possible presence of PERL_USE_UNSAFE_INC=1 #15926
Comments
From @jkeenanCreated by jkeenan@zareason.(none)Today I went to build and test blead at commit ##### The test itself is not new; it was committed in January of this year. Some IRC #p5p dialogue: ##### Attached is a patch to address the immediate problem. Please review. Thank you very much. Perl Info
|
From @jkeenant-run-runenv.patchdiff --git a/t/run/runenv.t b/t/run/runenv.t
index 611e012..6538304 100644
--- a/t/run/runenv.t
+++ b/t/run/runenv.t
@@ -298,11 +298,15 @@ is ($err, '', 'No errors when determining @INC');
my @default_inc = split /\n/, $out;
-if ($Config{default_inc_excludes_dot}) {
- ok !(grep { $_ eq '.' } @default_inc), '. is not in @INC';
-}
-else {
- is ($default_inc[-1], '.', '. is last in @INC');
+SKIP:
+{
+ skip "PERL_USE_UNSAFE_INC is set, contradicting \$Config{default_inc_excludes_dot", 1;
+ if ($Config{default_inc_excludes_dot}) {
+ ok !(grep { $_ eq '.' } @default_inc), '. is not in @INC';
+ }
+ else {
+ is ($default_inc[-1], '.', '. is last in @INC');
+ }
}
my $sep = $Config{path_sep};
|
From @jkeenanOn Tue, 21 Mar 2017 16:47:37 GMT, jkeen@verizon.net wrote:
Other (probably better) solution available in this branch: smoke-me/ilmari/unsafe-inc-env -- |
The RT System itself - Status changed from 'new' to 'open' |
From @xsawyerxOn 03/21/2017 06:14 PM, James E Keenan via RT wrote:
+1 to that. |
From @ilmariSawyer X <xsawyerx@gmail.com> writes:
Merged (with some tweaks), so this ticket can be closed. - ilmari -- |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#131031 (status was 'resolved')
Searchable as RT131031$
The text was updated successfully, but these errors were encountered: