Skip to content

Commit

Permalink
Skip test if running as superuser as it will fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Miha Vrhovnik committed Oct 8, 2011
1 parent 3d64d8e commit 438581d
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -79,6 +79,10 @@ public function testGuessWithNonReadablePath()
$this->markTestSkipped('Can not verify chmod operations on Windows');
}

if (in_array(get_current_user(), array('root'))) {
$this->markTestSkipped('This test will fail if run under superuser');
}

$path = __DIR__.'/../Fixtures/to_delete';
touch($path);
chmod($path, 0333);
Expand Down

0 comments on commit 438581d

Please sign in to comment.