Permalink
Browse files

Permissions issues only come up on installed version, so ignore part …

…if running from repository.
  • Loading branch information...
1 parent cd9e534 commit ddfe164b141e4ca27d7f00bf9dfb03e8166a9558 @convissor convissor committed Dec 26, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/PEAR_Registry/api1_1/test_hasWriteAccess.phpt
@@ -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 {

0 comments on commit ddfe164

Please sign in to comment.