cvs: pear-core /PEAR RunTest.php

From: Date: Sun, 10 May 2009 20:37:48 +0000
Subject: cvs: pear-core /PEAR RunTest.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-8401@lists.php.net to get a copy of this message
cellog Sun May 10 20:37:48 2009 UTC Modified files: /pear-core/PEAR RunTest.php Log: add helpful check for --CLEAN-- section that outputs anything. --CLEAN-- only does this when there is an error http://cvs.php.net/viewvc.cgi/pear-core/PEAR/RunTest.php?r1=1.75&r2=1.76&diff_format=u Index: pear-core/PEAR/RunTest.php diff -u pear-core/PEAR/RunTest.php:1.75 pear-core/PEAR/RunTest.php:1.76 --- pear-core/PEAR/RunTest.php:1.75 Sat Apr 25 20:12:47 2009 +++ pear-core/PEAR/RunTest.php Sun May 10 20:37:47 2009 @@ -10,7 +10,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: RunTest.php,v 1.75 2009/04/25 20:12:47 dufuz Exp $ + * @version CVS: $Id: RunTest.php,v 1.76 2009/05/10 20:37:47 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.3.3 */ @@ -933,7 +933,10 @@ if ($section_text['CLEAN']) { // perform test cleanup $this->save_text($temp_clean, $section_text['CLEAN']); - $this->system_with_timeout("$this->_php $temp_clean"); + $output = $this->system_with_timeout("$this->_php $temp_clean 2>&1"); + if (strlen($output[1])) { + echo "BORKED --CLEAN-- section! output:\n", $output[1]; + } if (file_exists($temp_clean)) { unlink($temp_clean); }

« previous php.pear.core (#8401) next »