[Yaml] Skip parser test with root user

This commit is contained in:
Laurent Bassin 2018-09-20 16:39:16 +02:00 committed by Nicolas Grekas
parent da1999856f
commit 34429797b3

View File

@ -2099,6 +2099,10 @@ YAML;
$this->markTestSkipped('chmod is not supported on Windows');
}
if (!getenv('USER') || 'root' === getenv('USER')) {
$this->markTestSkipped('This test will fail if run under superuser');
}
$file = __DIR__.'/Fixtures/not_readable.yml';
chmod($file, 0200);