Skip to content

Don't run proc_open_cmd.phpt in parallel with other tests #17090

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

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Dec 9, 2024

This test puts a fake cmd.exe in the CWD and removes it only after the test has finished. We need to avoid that other tests are running while that fake cmd.exe is there, because they may use it instead of the proper cmd.exe.

We also unlink the fake cmd.exe as soon as possible, regardless of the test result.


We had a collision in the nightly runs.

This test puts a fake cmd.exe in the CWD and removes it only after the
test has finished.  We need to avoid that other tests are running while
that fake cmd.exe is there, because they may use it instead of the
proper cmd.exe.

We also unlink the fake cmd.exe as soon as possible, regardless of the
test result.
@cmb69 cmb69 requested a review from bukka as a code owner December 9, 2024 11:18
@cmb69 cmb69 linked an issue Dec 10, 2024 that may be closed by this pull request
@cmb69 cmb69 closed this in aafa6ea Dec 15, 2024
@cmb69 cmb69 deleted the cmb/proc_open_cmd.phpt-conflicts branch December 15, 2024 11:12
charmitro pushed a commit to wasix-org/php that referenced this pull request Mar 13, 2025
This test puts a fake cmd.exe in the CWD and removes it only after the
test has finished.  We need to avoid that other tests are running while
that fake cmd.exe is there, because they may use it instead of the
proper cmd.exe.

We also unlink the fake cmd.exe as soon as possible, regardless of the
test result.

Fixes phpGH-17098.
Closes phpGH-17090.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proc_open escape args on Windows test occasionally fails
1 participant