shane Sun Oct 27 21:00:57 2002 EDT Modified files: /php4 run-tests.php Log: windows will not have these, so dont bother, but add an OS to the stuff so that it makes sense why they are N/A Index: php4/run-tests.php diff -u php4/run-tests.php:1.93 php4/run-tests.php:1.94 --- php4/run-tests.php:1.93 Sun Oct 27 20:43:54 2002 +++ php4/run-tests.php Sun Oct 27 21:00:56 2002 @@ -286,11 +286,19 @@ $failed_tests_data = ''; $sep = "\n" . str_repeat('=', 80) . "\n"; - $failed_tests_data .= "Automake:\n". shell_exec('automake --version'). "\n"; - $failed_tests_data .= "Autoconf:\n". shell_exec('autoconf --version'). "\n"; - $failed_tests_data .= "Libtool:\n". shell_exec('libtool --version'). "\n"; - $failed_tests_data .= "Bison:\n". shell_exec('bison --version'). "\n"; - $failed_tests_data .= "Compiler:\n". shell_exec(getenv('CC').' -v 2>&1'). "\n"; + $failed_tests_data .= "OS:\n". PHP_OS. "\n"; + $automake = $autoconf = $libtool = $compiler = 'N/A'; + if (substr(PHP_OS, 0, 3) != "WIN") { + $automake = shell_exec('automake --version'); + $autoconf = shell_exec('autoconf --version'); + $libtool = shell_exec('libtool --version'); + $compiler = shell_exec(getenv('CC').' -v 2>&1'); + } + $failed_tests_data .= "Automake:\n$automake\n"; + $failed_tests_data .= "Autoconf:\n$autoconf\n"; + $failed_tests_data .= "Libtool:\n$libtool\n"; + $failed_tests_data .= "Compiler:\n$compiler\n"; + $failed_tests_data .= "Bison:\n". @shell_exec('bison --version'). "\n"; $failed_tests_data .= "\n\n"; $failed_tests_data .= $failed_test_summary . "\n";
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php