Skip to content

[Process] fix tests #51297

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

Merged
merged 1 commit into from
Aug 7, 2023
Merged

[Process] fix tests #51297

merged 1 commit into from
Aug 7, 2023

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Aug 7, 2023

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -
  • testFindProcessInOpenBasedir is a duplicate of testFindWithOpenBaseDir
  • testFindWithOpenBaseDir currently expects that we search open_basedir instead of PATH when the setting is set, but this doesn't really make sense, and [Process] Support using Process::findExecutable() independently of open_basedir #47422 removed this behavior
  • PhpSubprocessTest::testSubprocess expects a php that defaults to memory_limit=-1, which is not the case currently for the sigchild-enabled binary

@@ -98,6 +98,7 @@ public function testFindWithOpenBaseDir()
$this->markTestSkipped('Cannot test when open_basedir is set');
}

putenv('PATH='.\dirname(\PHP_BINARY));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be restored to previous value at end of the test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolas-grekas nicolas-grekas merged commit b4d215c into symfony:6.4 Aug 7, 2023
@nicolas-grekas nicolas-grekas deleted the proc-fix branch August 7, 2023 12:26
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.

3 participants