[Lock] fix locale dependent test case

This commit is contained in:
Nicolas Grekas 2018-06-28 11:33:10 +02:00
parent b9a3c870d9
commit e665da0c9a

View File

@ -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));
}