logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1187891 - /logging/log4php/trunk/src/test/php/appenders/LoggerAppenderPDOTest.php
Date Sun, 23 Oct 2011 14:19:52 GMT
Author: ihabunek
Date: Sun Oct 23 14:19:52 2011
New Revision: 1187891

URL: http://svn.apache.org/viewvc?rev=1187891&view=rev
Log:
Make unlink fail silently in test setup. It sometime fails on windows, and it's not very important
anyway.

Modified:
    logging/log4php/trunk/src/test/php/appenders/LoggerAppenderPDOTest.php

Modified: logging/log4php/trunk/src/test/php/appenders/LoggerAppenderPDOTest.php
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/test/php/appenders/LoggerAppenderPDOTest.php?rev=1187891&r1=1187890&r2=1187891&view=diff
==============================================================================
--- logging/log4php/trunk/src/test/php/appenders/LoggerAppenderPDOTest.php (original)
+++ logging/log4php/trunk/src/test/php/appenders/LoggerAppenderPDOTest.php Sun Oct 23 14:19:52
2011
@@ -36,12 +36,12 @@ class LoggerAppenderPDOTest extends PHPU
             self::markTestSkipped("Please install 'pdo_sqlite' in order to run this test");
         }
 
-        if (file_exists(self::file)) unlink(self::file);
+        if (file_exists(self::file)) @unlink(self::file);
     }
 
     /** Clean up after the last test was run. */
     public static function tearDownAfterClass() {
-        if (file_exists(self::file)) unlink(self::file);
+        if (file_exists(self::file)) @unlink(self::file);
     }
     
 	public function testRequiresLayout() {



Mime
View raw message