Skip to content

Commit 25bdf9d

Browse files
committed
Check ps -p availability in proc_nice test
1 parent 741daa8 commit 25bdf9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/standard/tests/general_functions/proc_nice_basic.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Simone Gentili ([email protected])
99
<?php
1010
if(!function_exists('proc_nice')) die("skip. proc_nice not available ");
1111
if(substr(strtoupper(PHP_OS), 0, 3) == 'WIN') die('skip. not for Windows');
12+
exec('ps -p 1 -o "pid,nice"', $output, $exit_code);
13+
if ($exit_code !== 0) {
14+
die("skip ps -p is not available");
15+
}
1216
?>
1317
--FILE--
1418
<?php

0 commit comments

Comments
 (0)