cvs: pear-core /PEAR RunTest.php
| From: | Greg Beaver | Date: | Sat, 17 Feb 2007 19:19:44 +0000 |
| Subject: | cvs: pear-core /PEAR RunTest.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5440@lists.php.net to get a copy of this message | ||
cellog Sat Feb 17 19:19:44 2007 UTC
Modified files:
/pear-core/PEAR RunTest.php
Log:
make --FAIL-- work on windows and unix
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/RunTest.php?r1=1.32&r2=1.33&diff_format=u
Index: pear-core/PEAR/RunTest.php
diff -u pear-core/PEAR/RunTest.php:1.32 pear-core/PEAR/RunTest.php:1.33
--- pear-core/PEAR/RunTest.php:1.32 Sat Feb 17 17:54:28 2007
+++ pear-core/PEAR/RunTest.php Sat Feb 17 19:19:44 2007
@@ -16,7 +16,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: RunTest.php,v 1.32 2007/02/17 17:54:28 cellog Exp $
+ * @version CVS: $Id: RunTest.php,v 1.33 2007/02/17 19:19:44 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.3.3
*/
@@ -595,8 +595,8 @@
$output,
null,
isset($section_text['EXPECTF']) ? $wanted_re : null);
- $wanted = explode("\n", trim($section_text['FAIL']));
- $wanted = implode("\r\n", $wanted);
+ $wanted = preg_replace('/\r/', '',
trim($section_text['FAIL']));
+ $faildiff = preg_replace('/\r/', '', $faildiff);
if ($faildiff == $wanted) {
if (!isset($this->_options['quiet'])) {
$this->_logger->log(0, "PASS $tested$info");