[TASK] Clean up unit tests on Windows 02/47502/5
authorSusanne Moog <typo3@susannemoog.de>
Sun, 3 Apr 2016 12:14:50 +0000 (14:14 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 7 Apr 2016 15:35:27 +0000 (17:35 +0200)
commit376d8369745fce3c96ddc1f26f704cf2ea755744
tree2ab486979d4cbb4bece94f2d86873d5cb0c3dbbe
parent4fc35509f5761b7b39aca82287aea61b5f4dbab3
[TASK] Clean up unit tests on Windows

At the moment a lot of tests are skipped on Windows environments.
The main reasons are permissions, symlinks and shell exec commands.
As symlinks are now working on Windows (if the user / group is allowed
to create them) there is no reason to skip those tests. As you can only
create valid symlinks on Windows (the target is checked for existence)
the tests needed to be adjusted to take that into account.

Additionally some of the other tests don't need to be skipped either, as
they mock all system specific calls (e.g. AbstractNodeTests).

For the other tests the message on skipping was updated to contain more
information as to what causes them to be irrelevant on Windows.

Resolves: #75388
Releases: master
Change-Id: I86c6d9b0cec34a94d1185f46e2023af811b16107
Reviewed-on: https://review.typo3.org/47502
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Tests/Unit/Configuration/ConfigurationManagerTest.php
typo3/sysext/core/Tests/Unit/Core/SystemEnvironmentBuilderTest.php
typo3/sysext/core/Tests/Unit/Locking/SimpleLockStrategyTest.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
typo3/sysext/install/Tests/Unit/FolderStructure/AbstractNodeTest.php
typo3/sysext/install/Tests/Unit/FolderStructure/DirectoryNodeTest.php
typo3/sysext/install/Tests/Unit/FolderStructure/FileNodeTest.php
typo3/sysext/install/Tests/Unit/FolderStructure/LinkNodeTest.php
typo3/sysext/rsaauth/Tests/Unit/Backend/CommandLineBackendTest.php