Skip to content

Commit 61973ec

Browse files
lbassinnicolas-grekas
authored andcommitted
[Yaml] Skip parser test with root user
1 parent 84fa64e commit 61973ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/ParserTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,6 +2099,10 @@ public function testParsingNotReadableFilesThrowsException()
20992099
$this->markTestSkipped('chmod is not supported on Windows');
21002100
}
21012101

2102+
if (!getenv('USER') || 'root' === getenv('USER')) {
2103+
$this->markTestSkipped('This test will fail if run under superuser');
2104+
}
2105+
21022106
$file = __DIR__.'/Fixtures/not_readable.yml';
21032107
chmod($file, 0200);
21042108

0 commit comments

Comments
 (0)