From b6fd5bd75bd815afa071062bdf7b7699899d4bb9 Mon Sep 17 00:00:00 2001 From: Paragon Initiative Enterprises Date: Sun, 18 Apr 2021 15:20:41 -0400 Subject: [PATCH] Skip this test if CI environment has weird perms --- test/unit/StreamTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/unit/StreamTest.php b/test/unit/StreamTest.php index f93e110..c433fa7 100644 --- a/test/unit/StreamTest.php +++ b/test/unit/StreamTest.php @@ -51,13 +51,10 @@ public function testUnreadableFile() file_put_contents($filename, $buf); chmod($filename, 0000); $perms = fileperms($filename); - if (!is_int($perms) || ($perms & 0777) !== 0) { + if (!is_int($perms) || ($perms & 0777) !== 0 || is_readable($filename)) { $this->markTestSkipped('chmod failed to remove read access, so the test will fail; skipping'); return; } - var_dump($perms); - $this->markTestSkipped('This is broken in CI; why?!'); - return; try { new ReadOnlyFile($filename);