From 5801d8dcf9b031fe5db1095cef0c4b827d28f84c Mon Sep 17 00:00:00 2001 From: Anja Leichsenring Date: Thu, 2 May 2019 08:57:45 +0200 Subject: [PATCH] [BUGFIX] Avoid raising a warning in SimpleLockStrategyTest The touch command raises a PHP WARNING if the test file can not be created, but the next line would already skip the test if this happens. So the warning is useless and gets silenced. Resolves: #88255 Releases: master, 9.5, 8.7 Change-Id: Id9685b6e7da8665609fa7df7f25867ab4d19a6a9 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60640 Tested-by: TYPO3com Tested-by: Markus Klein Tested-by: Andreas Fernandez Reviewed-by: Markus Klein Reviewed-by: Andreas Fernandez --- typo3/sysext/core/Tests/Unit/Locking/SimpleLockStrategyTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Tests/Unit/Locking/SimpleLockStrategyTest.php b/typo3/sysext/core/Tests/Unit/Locking/SimpleLockStrategyTest.php index 0aaf1cd4ee3c..e188f1cbde46 100644 --- a/typo3/sysext/core/Tests/Unit/Locking/SimpleLockStrategyTest.php +++ b/typo3/sysext/core/Tests/Unit/Locking/SimpleLockStrategyTest.php @@ -105,7 +105,7 @@ public function invalidFileReferences() public function releaseDoesNotRemoveFilesNotWithinTypo3TempLocksDirectory($file) { // Create test file - touch($file); + @touch($file); if (!is_file($file)) { $this->markTestIncomplete('releaseDoesNotRemoveFilesNotWithinTypo3TempLocksDirectory() skipped: Test file could not be created'); }