From e665da0c9a1338608bfee9875535e6317d308843 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 28 Jun 2018 11:33:10 +0200 Subject: [PATCH] [Lock] fix locale dependent test case --- src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php b/src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php index 23b90360be..7057505072 100644 --- a/src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php +++ b/src/Symfony/Component/Lock/Tests/Store/SemaphoreStoreTest.php @@ -50,7 +50,7 @@ class SemaphoreStoreTest extends AbstractStoreTest private function getOpenedSemaphores() { - $lines = explode(PHP_EOL, trim(`ipcs -su`)); + $lines = explode(PHP_EOL, trim(`LC_ALL=C ipcs -su`)); if ('------ Semaphore Status --------' !== $lines[0]) { throw new \Exception('Failed to extract list of opend semaphores. Expect a Semaphore status, got '.implode(PHP_EOL, $lines)); }