Bug #31070

Symlink related Unit Tests fail on some Windows systems

Added by Bastian Waidelich almost 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Should have
Category:
- Testing -
Target version:
-
Start date:
2011-10-18
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Depending on the system configuration and the current Windows Username, the PHP function sys_get_temp_dir() returns an abbreviated path to the temporary directory.
Details: By default, this function returns C:\Windows\TEMP for me. But running the unit tests from CLI, it returns C:\Users\BWAIDEL~1\AppData\Local\Temp\ - That breaks our \TYPO3\FLOW3\Utitlity\Files::is_link() work around.

To fix this, we should use realpath(sys_get_temp_dir()) or tempnam() instead.

#1

Updated by Bastian Waidelich almost 10 years ago

  • Subject changed from File based Unit Rests fail on some Windows systems to Symlink related Unit Tests fail on some Windows systems
#2

Updated by Mr. Hudson almost 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 of change I6e59ec224d6c3a3c6f62180be334d3b76d1d067d has been pushed to the review server.
It is available at http://review.typo3.org/5967

#3

Updated by Mr. Hudson almost 10 years ago

Patch set 2 of change I6e59ec224d6c3a3c6f62180be334d3b76d1d067d has been pushed to the review server.
It is available at http://review.typo3.org/5967

#5

Updated by Mr. Hudson over 9 years ago

Patch set 3 of change I6e59ec224d6c3a3c6f62180be334d3b76d1d067d has been pushed to the review server.
It is available at http://review.typo3.org/5967

#6

Updated by Mr. Hudson over 9 years ago

Patch set 4 of change I6e59ec224d6c3a3c6f62180be334d3b76d1d067d has been pushed to the review server.
It is available at http://review.typo3.org/5967

#7

Updated by Bastian Waidelich over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF