cvs: php-src / run-tests.php
| From: | Antony Dovgal | Date: | Wed, 18 Jan 2006 17:58:56 +0000 |
| Subject: | cvs: php-src / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36567@lists.php.net to get a copy of this message | ||
tony2001 Wed Jan 18 17:58:56 2006 UTC
Modified files:
/php-src run-tests.php
Log:
fix error message on
make test when bison is not installed
http://cvs.php.net/viewcvs.cgi/php-src/run-tests.php?r1=1.276&r2=1.277&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.276 php-src/run-tests.php:1.277
--- php-src/run-tests.php:1.276 Tue Jan 17 12:18:51 2006
+++ php-src/run-tests.php Wed Jan 18 17:58:56 2006
@@ -23,7 +23,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: run-tests.php,v 1.276 2006/01/17 12:18:51 dmitry Exp $ */
+/* $Id: run-tests.php,v 1.277 2006/01/18 17:58:56 tony2001 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
@@ -405,7 +405,7 @@
$html_output = is_resource($html_file);
break;
case '--version':
- echo '$Revision: 1.276 $'."\n";
+ echo '$Revision: 1.277 $'."\n";
exit(1);
default:
echo "Illegal switch specified!\n";
@@ -738,7 +738,7 @@
$failed_tests_data .= "Bundled Libtool:\n$libtool\n";
$failed_tests_data .= "System Libtool:\n$sys_libtool\n";
$failed_tests_data .= "Compiler:\n$compiler\n";
- $failed_tests_data .= "Bison:\n". @shell_exec('bison --version').
"\n";
+ $failed_tests_data .= "Bison:\n". @shell_exec('bison --version
2>/dev/null'). "\n";
$failed_tests_data .= "Libraries:\n$ldd\n";
$failed_tests_data .= "\n";