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

Skip to content

Commit 7f9a262

Browse 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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines 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)