svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/ Runner.php
| From: | Helgi Þormar Þorbjörnsson | Date: | Sun, 14 Mar 2010 09:51:01 +0000 |
| Subject: | svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/ Runner.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9297@lists.php.net to get a copy of this message | ||
dufuz Sun, 14 Mar 2010 09:51:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=296166
Log:
Kill off xdebug files for tests that are have started to skip. This is to prevent incoherent results
due to outdated coverages or similar.
Changed paths:
U pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php
Modified: pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php
===================================================================
--- pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php 2010-03-14 09:48:38 UTC (rev
296165)
+++ pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php 2010-03-14 09:51:01 UTC (rev
296166)
@@ -389,6 +389,13 @@
// Check if test should be skipped.
$res = $this->_runSkipIf($section_text, $temp_skipif, $tested, $ini_settings);
if (count($res) != 2) {
+ if (isset($this->_options['coverage']) && $this->xdebug_loaded)
{
+ $xdebug_file = $temp_dir . DIRECTORY_SEPARATOR . $main_file_name .
'xdebug';
+ if (file_exists($xdebug_file)) {
+ @unlink($xdebug_file);
+ }
+ }
+
return $res;
}
$info = $res['info'];