Bug #31070

Symlink related Unit Tests fail on some Windows systems

Added by Bastian Waidelich over 1 year ago. Updated over 1 year ago.

Status:Resolved Start date:2011-10-18
Priority:Should have Due date:
Assignee:Bastian Waidelich % Done:

100%

Category:- Testing -
Target version:-
PHP Version: Complexity:
Has patch: FLOW3 version affected:FLOW3 1.0.0
Votes: 0

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.

Associated revisions

Revision 60b45d7d
Added by Bastian Waidelich over 1 year ago

[BUGFIX] Symlink related Unit Tests fail on some Windows systems

This replaces sys_get_temp_dir() by tempnam() in unit tests that
use symlinks to avoid them from failing on some Windows
environments.

Change-Id: I6e59ec224d6c3a3c6f62180be334d3b76d1d067d
Resolves: #31070
Release: 1.0, 1.1

Revision 4c9bcc0b
Added by Bastian Waidelich over 1 year ago

[BUGFIX] Symlink related Unit Tests fail on some Windows systems

This replaces sys_get_temp_dir() by tempnam() in unit tests that
use symlinks to avoid them from failing on some Windows
environments.

Change-Id: I22bc69aed663caf8b1aa5939a8584c6f7be0a0f2
Fixes: #31070
Release: 1.0, 1.1

History

Updated by Bastian Waidelich over 1 year ago

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

Updated by Mr. Hudson over 1 year 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

Updated by Mr. Hudson over 1 year ago

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

Updated by Karsten Dambekalns over 1 year ago

  • FLOW3 version affected set to FLOW3 1.0.0

Updated by Mr. Hudson over 1 year ago

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

Updated by Mr. Hudson over 1 year ago

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

Updated by Bastian Waidelich over 1 year ago

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

Also available in: Atom PDF