Skip to content

[Process] fix tests#51297

Merged
nicolas-grekas merged 1 commit intosymfony:6.4from
nicolas-grekas:proc-fix
Aug 7, 2023
Merged

[Process] fix tests#51297
nicolas-grekas merged 1 commit intosymfony:6.4from
nicolas-grekas:proc-fix

Conversation

@nicolas-grekas
Copy link
Copy Markdown
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

$this->markTestSkipped('Cannot test when open_basedir is set');
}

putenv('PATH='.\dirname(\PHP_BINARY));
Copy link
Copy Markdown
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
Copy Markdown
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