Skip to content

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