sniper Wed Dec 7 05:08:09 2005 EDT
Modified files:
/php-src run-tests.php
Log:
- Fixed error messages
http://cvs.php.net/diff.php/php-src/run-tests.php?r1=1.249&r2=1.250&ty=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.249 php-src/run-tests.php:1.250
--- php-src/run-tests.php:1.249 Wed Dec 7 04:06:30 2005
+++ php-src/run-tests.php Wed Dec 7 05:08:07 2005
@@ -23,7 +23,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: run-tests.php,v 1.249 2005/12/07 09:06:30 dmitry Exp $ */
+/* $Id: run-tests.php,v 1.250 2005/12/07 10:08:07 sniper Exp $ */
/* Sanity check to ensure that pcre extension needed by this script is
available.
* In the event it is not, print a nice error message indicating that this
script will
@@ -332,7 +332,7 @@
$html_output = is_resource($html_file);
break;
case '--version':
- echo "$Id: run-tests.php,v 1.249
2005/12/07 09:06:30 dmitry Exp $\n";
+ echo "$Id: run-tests.php,v 1.250
2005/12/07 10:08:07 sniper Exp $\n";
exit(1);
default:
echo "Illegal switch specified!\n";
@@ -1286,21 +1286,21 @@
if (!$passed) {
// write .exp
if (strpos($log_format,'E') !== FALSE) {
- $log = fopen($exp_filename,'wt') or error("Cannot
create test log - $exp_filename");
+ $log = fopen($exp_filename,'wt') or error("Cannot
create expected test output - $exp_filename");
fwrite($log,$wanted);
fclose($log);
}
// write .out
if (strpos($log_format,'O') !== FALSE) {
- $log = fopen($output_filename,'wt') or error("Cannot
create test log - $output_filename");
+ $log = fopen($output_filename,'wt') or error("Cannot
create test output - $output_filename");
fwrite($log,$output);
fclose($log);
}
// write .diff
if (strpos($log_format,'D') !== FALSE) {
- $log = fopen($diff_filename,'wt') or error("Cannot
create test log - $diff_filename");
+ $log = fopen($diff_filename,'wt') or error("Cannot
create test diff - $diff_filename");
fwrite($log, generate_diff($wanted,$wanted_re,$output));
fclose($log);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php