Skip to content
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

Merged
merged 1 commit into from
Sep 18, 2020

Conversation

wchristian
Copy link
Contributor

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

@wchristian
Copy link
Contributor Author

Applied some feedback from IRC. Any other objections to this being merged?

@wchristian
Copy link
Contributor Author

@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
Copy link
Member

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?

Copy link
Contributor Author

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`;
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@atoomic atoomic left a 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

@toddr toddr merged commit b8884e7 into Perl:blead Sep 18, 2020
toddr added a commit that referenced this pull request Sep 18, 2020
Goes with #18118. Per ilmari, this is ok to push in while we wait
for Perl-Toolchain-Gang/extutils-pl2bat#6
to merge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants