avoid test suite file leaks
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 24 Feb 2012 20:30:55 +0000 (20:30 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 24 Feb 2012 20:30:55 +0000 (20:30 +0000)
tests/phpunit/includes/filerepo/FileBackendTest.php

index 7b04a40..356c689 100644 (file)
@@ -200,6 +200,7 @@ class FileBackendTest extends MediaWikiTestCase {
                $this->backend = $this->multiBackend;
                $this->tearDownFiles();
                $this->doTestStore( $op );
+               $this->filesToPrune[] = $op['src']; # avoid file leaking
                $this->tearDownFiles();
        }
 
@@ -662,6 +663,7 @@ class FileBackendTest extends MediaWikiTestCase {
                $this->backend = $this->multiBackend;
                $this->tearDownFiles();
                $this->doTestConcatenate( $op, $srcs, $srcsContent, $alreadyExists, $okStatus );
+               $this->filesToPrune[] = $op['dst']; # avoid file leaking
                $this->tearDownFiles();
        }