Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f9a262

Browse filesBrowse files
minor #27755 [Lock] fix locale dependent test case (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [Lock] fix locale dependent test case | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Right now, I get a failure with `Exception: Failed to extract list of opend semaphores. Expect a Semaphore status, got ------ États des sémaphores --------` :) Commits ------- e665da0 [Lock] fix locale dependent test case
2 parents 0990bbd + e665da0 commit 7f9a262
Copy full SHA for 7f9a262

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testResourceRemoval()
5050

5151
private function getOpenedSemaphores()
5252
{
53-
$lines = explode(PHP_EOL, trim(`ipcs -su`));
53+
$lines = explode(PHP_EOL, trim(`LC_ALL=C ipcs -su`));
5454
if ('------ Semaphore Status --------' !== $lines[0]) {
5555
throw new \Exception('Failed to extract list of opend semaphores. Expect a Semaphore status, got '.implode(PHP_EOL, $lines));
5656
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.