-
Notifications
You must be signed in to change notification settings - Fork 565
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
make_executable.t: ensure PATH for test is not too long, as that is incompatible with win2k #18118
Conversation
8eda0f3
to
70752d1
Compare
…ncompatible with win2k
70752d1
to
463ac8d
Compare
Applied some feedback from IRC. Any other objections to this being merged? |
@Leont Ping? :) |
|
||
sub construct_test_PATH { | ||
my $perl_path = $^X; | ||
my $cmd_path = $ENV{ComSpec} || `where cmd`; # where doesn't seem to work on all windows versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not we check for $?
when it fails?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sensible too.
note "using perl executable name: $perl"; | ||
|
||
local $ENV{PATH} = $path_with_cwd; | ||
my $test_out = `$perl -e 1 2>&1`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe check $?
in addition to the output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, i can add that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note you also need to update Porting/Maintainers.pl
and mark ExtUtils-PL2Bat/t/make_executable.t
as CUSTOMIZED
Goes with #18118. Per ilmari, this is ok to push in while we wait for Perl-Toolchain-Gang/extutils-pl2bat#6 to merge.
According to ilmari this can be integrated into blead directly, as it is strictly a test fix.
This is a companion to Perl-Toolchain-Gang/extutils-pl2bat#6 which will need further work before it can be integrated, while the test fix can go in directly.
It is also the solution to #18104