[BUGFIX] Semaphore test: release system resources 29/49329/2
authorMarkus Klein <markus.klein@typo3.org>
Tue, 2 Aug 2016 17:41:39 +0000 (19:41 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 2 Aug 2016 19:09:31 +0000 (21:09 +0200)
The tests now properly destroy occupied system resources.

Resolves: #77364
Releases: master, 7.6
Change-Id: I54bd86385f9418ba9e7f3cba3bae440d1fd82d2d
Reviewed-on: https://review.typo3.org/49329
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Bamboo TYPO3com <info@typo3.com>
typo3/sysext/core/Tests/Unit/Locking/SemaphoreLockStrategyTest.php

index c1e4208..50c1b86 100644 (file)
@@ -40,5 +40,6 @@ class SemaphoreLockStrategyTest extends UnitTestCase
         $lock = new SemaphoreLockStrategy('99999');
         $this->assertTrue($lock->acquire());
         $lock->release();
+        $lock->destroy();
     }
 }