Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Jun 29, 2018
Merged

[Lock] Fix SemaphoreStoreTest on OS X #27779

merged 1 commit into from
Jun 29, 2018

Conversation

ogizanagi
Copy link
Contributor

@ogizanagi ogizanagi commented Jun 29, 2018

Q A
Branch? 3.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #27755 (review)
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.

@ogizanagi ogizanagi changed the title [Lock] fix locale dependent test case (OSX Edition) [Lock] fix locale dependent test case (OS X Edition) Jun 29, 2018
@ogizanagi ogizanagi changed the title [Lock] fix locale dependent test case (OS X Edition) [Lock] Fix SemaphoreStoreTest on OS X Jun 29, 2018
@@ -50,13 +50,22 @@ public function testResourceRemoval()

private function getOpenedSemaphores()
{
if ('Darwin' === PHP_OS) {
$lines = explode(PHP_EOL, trim(`ipcs -s`));
Copy link
Contributor Author

@ogizanagi ogizanagi Jun 29, 2018

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.

Copy link
Member

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 ipcsoutput, fine as is to me

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Jun 29, 2018
@nicolas-grekas
Copy link
Member

Thank you @ogizanagi.

@nicolas-grekas nicolas-grekas merged commit 9055611 into symfony:3.4 Jun 29, 2018
nicolas-grekas added a commit that referenced this pull request Jun 29, 2018
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
@ogizanagi ogizanagi deleted the lock-locale-osx branch June 29, 2018 19:56
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.

4 participants