[TYPO3-core] RFC #16849: fixPermissions* tests rely on availability of posix_getegid()

Steffen Gebert steffen at steffen-gebert.de
Sun Dec 26 22:59:06 CET 2010


Hi!

This is a SVN patch request.

Type: Bugfix

Bugtracker reference:
http://bugs.typo3.org/view.php?id=16849

Branches:
4-4, trunk

Problem:
The fixPermissions* tests in t3lib_divTest fail on my MacOS, as the 
function posix_getegid() is not available.
For Windows environments, these tests are already skipped.

Major problem is the first call to the undefined function causes a PHP 
error and no remaining tests are executed anymore.

Solution:
Skip tests, if function posix_getegid() is not available.

Note:
With phpunit < 3.5.6 (brand new) all tests were shown as green, although 
test execution was failed with PHP fatal error. Now (although remaining 
tests aren't executed), there's at least an indicator (like "red 
statusbar by default"). Thanks Oli!
This patch tweaks the red bar back to green ;)

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 Core Team Member
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16849.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101226/c5e14a24/attachment-0001.asc>


More information about the TYPO3-team-core mailing list