Skip to content

Commit

Permalink
Permissions issues only come up on installed version, so ignore part …
Browse files Browse the repository at this point in the history
…if running from repository.
  • Loading branch information
convissor committed Dec 26, 2011
1 parent cd9e534 commit ddfe164
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/PEAR_Registry/api1_1/test_hasWriteAccess.phpt
Expand Up @@ -27,11 +27,14 @@ safe_mode_allowed_env_vars=HOME,PHP_
$prior_er = error_reporting(error_reporting() & ~E_WARNING);
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
error_reporting($prior_er);
if (OS_UNIX) {

// Permissions issues only come up on installed version.
if (OS_UNIX && '@PEAR-VER@' != '@'.'PEAR-VER'.'@') {
$phpunit->assertErrorsF(array(
array('package' => 'PEAR_Error', 'message' => 'registerRoles: opendir(%sPEAR/Installer/Role) failed: does not exist/is not directory')
), 'err');
}

if (OS_WINDOWS) {
$reg->install_dir = '/';
} else {
Expand Down

0 comments on commit ddfe164

Please sign in to comment.