Bug #32723

Files unit tests create but don't remove a lot of temporary files

Added by Robert Lemke over 3 years ago. Updated over 3 years ago.

Status:Resolved Start date:2011-12-20
Priority:Must have Due date:
Assigned To:- % Done:

100%

Category:- Testing -
Target version:TYPO3 Flow Base Distribution - 1.1 beta 1
PHP Version: Complexity:easy
Has patch:No Affected Flow version:Git master

Description

The tests in TYPO3\FLOW3\Tests\Unit\Utility\Files generate various temporary files through PHP's tempnam() function.

However, these files are never removed again, which led to our CI server having > 400,000 files in /tmp

The test case should use a subdirectory in $TMP and have a teardown method which removes that subdirectory recursively.

Associated revisions

Revision 78a7482a
Added by Adrian Föder over 3 years ago

[BUGFIX] Unit tests remove their temporary files

Some unit tests create many temporary files outside vfs://
that are now removed after running the test.

Change-Id: I758ff86bb969fe11c734fc7dd9bba45f3b4b21c5
Fixes: #32723
Releases: 1.0, 1.1

Revision f95aa838
Added by Adrian Föder over 3 years ago

[BUGFIX] Unit tests remove their temporary files

Some unit tests create many temporary files outside vfs://
that are now removed after running the test.

Change-Id: I889d72649b4a55c54c96799cbe0768e9362e6110
Fixes: #32723
Releases: 1.0, 1.1

History

#1 Updated by Bastian Waidelich over 3 years ago

  • Status changed from New to Accepted
  • Assigned To set to Bastian Waidelich
  • Target version set to 1.1 beta 1

#2 Updated by Bastian Waidelich over 3 years ago

  • Assigned To deleted (Bastian Waidelich)

#3 Updated by Gerrit Code Review over 3 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7433

#4 Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7433

#5 Updated by Gerrit Code Review over 3 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7433

#6 Updated by Adrian Föder over 3 years ago

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

#7 Updated by Gerrit Code Review over 3 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/7439

#8 Updated by Karsten Dambekalns over 3 years ago

  • Status changed from Under Review to Resolved

#9 Updated by Gerrit Code Review over 3 years ago

  • Status changed from Resolved to Under Review

Patch set 2 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/7439

#10 Updated by Adrian Föder over 3 years ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF