com php-src: added skip condition for powershell requirement of test: sapi/cli/tests/cli_process_title_windows.phpt

From: Date: Sat, 27 Jun 2015 13:02:52 +0000
Subject: com php-src: added skip condition for powershell requirement of test: sapi/cli/tests/cli_process_title_windows.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87559@lists.php.net to get a copy of this message
Commit: b811bb3920168c19aa7cc9fa51cbad0d3d127dcc Author: Christoph M. Becker <cmb@php.net> Sat, 27 Jun 2015 15:02:52 +0200 Parents: 0730fc88306154fa770ab4558be7cb4d028b1e74 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b811bb3920168c19aa7cc9fa51cbad0d3d127dcc Log: added skip condition for powershell requirement of test Changed paths: M sapi/cli/tests/cli_process_title_windows.phpt Diff: diff --git a/sapi/cli/tests/cli_process_title_windows.phpt b/sapi/cli/tests/cli_process_title_windows.phpt index 472f9c1..12eb807 100644 --- a/sapi/cli/tests/cli_process_title_windows.phpt +++ b/sapi/cli/tests/cli_process_title_windows.phpt @@ -3,7 +3,9 @@ Check cli_process_title support in Windows --SKIPIF-- <?php if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') - die("skip"); + die("skip this test is for Windows platforms only"); +if (shell_exec('PowerShell -Help') === NULL) + die("skip this test requires powershell.exe"); ?> --FILE-- <?php

« previous php.cvs (#87559) next »