-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Lock] Fix SemaphoreStoreTest on OS X #27779
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
Conversation
@@ -50,13 +50,22 @@ public function testResourceRemoval() | |||
|
|||
private function getOpenedSemaphores() | |||
{ | |||
if ('Darwin' === PHP_OS) { | |||
$lines = explode(PHP_EOL, trim(`ipcs -s`)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I don't think using LC_ALL=C
as in mentioned PR would have any effect on OS X.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the locale doesn't change the ipcs
output, fine as is to me
Thank you @ogizanagi. |
This PR was merged into the 3.4 branch. Discussion ---------- [Lock] Fix SemaphoreStoreTest on OS X | Q | A | ------------- | --- | Branch? | 3.4 <!-- see below --> | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #27755 (review) <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A As spotted in #27755 (review), for OS X. If other OS X users could give it a try (`/phpunit src/Symfony/Component/Lock/ --filter=SemaphoreStoreTest`), that would be awesome. Commits ------- 9055611 [Lock] Fix SemaphoreStoreTest on OS X
As spotted in #27755 (review), for OS X.
If other OS X users could give it a try (
/phpunit src/Symfony/Component/Lock/ --filter=SemaphoreStoreTest
), that would be awesome.