(bug 37458) permission errors running BaseDumpTest on Windows
authorTobias Gritschacher <tobias.gritschacher@wikimedia.de>
Mon, 18 Jun 2012 13:11:04 +0000 (15:11 +0200)
committerAntoine Musso <hashar@free.fr>
Wed, 20 Jun 2012 09:14:51 +0000 (11:14 +0200)
Change-Id: I58264c5f516f8dcb124d753b43a80b0875b0e974

tests/phpunit/maintenance/backupPrefetchTest.php

index e92b289..6ec802c 100644 (file)
@@ -17,11 +17,13 @@ class BaseDumpTest extends MediaWikiTestCase {
        private $dump = null;
 
        protected function tearDown() {
-               parent::tearDown();
-
                if ( $this->dump !== null ) {
                        $this->dump->close();
                }
+
+               // Bug 37458, parent teardown need to be done after closing the
+               // dump or it might cause some permissions errors.
+               parent::tearDown();
        }
 
        /**