diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-05 12:23:27 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-05 18:18:18 +0200 |
commit | 99645f5352b5dc9faaece36f606edfff5f7a7460 (patch) | |
tree | 578e6c471de77a2f18642b2f44ac1a5c45e88afa /sapi/cli | |
parent | 8fd79d35742c799c59cfc090d8cfdbe1f93b4f3a (diff) | |
download | php-git-99645f5352b5dc9faaece36f606edfff5f7a7460.tar.gz |
Check ps -p availability in process title test
Diffstat (limited to 'sapi/cli')
-rw-r--r-- | sapi/cli/tests/cli_process_title_unix.phpt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sapi/cli/tests/cli_process_title_unix.phpt b/sapi/cli/tests/cli_process_title_unix.phpt index d6e49a2221..166cb79ad3 100644 --- a/sapi/cli/tests/cli_process_title_unix.phpt +++ b/sapi/cli/tests/cli_process_title_unix.phpt @@ -7,7 +7,12 @@ if (PHP_SAPI !== "cli") if (!PHP_CLI_PROCESS_TITLE) die("skip process title not available (disabled or unsupported)"); if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') - die("skip"); + die("skip Not for Windows"); + +exec("ps -p 1", $output, $exit_code); +if ($exit_code !== 0) { + die("skip ps -p is not available"); +} ?> --FILE-- <?php |