diff options
author | reeze <reeze.xia@gmail.com> | 2012-04-30 00:59:54 +0800 |
---|---|---|
committer | reeze <reeze.xia@gmail.com> | 2012-04-30 00:59:54 +0800 |
commit | e52be10b30d3efd07ba705801b28ee5173b6fe2c (patch) | |
tree | 93d1017d9a30d956c8ff81d3a42f867d64747466 | |
parent | 381edb425e16bd5d472c84d757465aa42cb39d0f (diff) | |
download | php-git-e52be10b30d3efd07ba705801b28ee5173b6fe2c.tar.gz |
Fix test for proc_nice: bsd ps command didn't support option -o "%p %n"
-rw-r--r-- | ext/standard/tests/general_functions/proc_nice_basic.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/tests/general_functions/proc_nice_basic.phpt b/ext/standard/tests/general_functions/proc_nice_basic.phpt index 3a958901a2..b64eab1309 100644 --- a/ext/standard/tests/general_functions/proc_nice_basic.phpt +++ b/ext/standard/tests/general_functions/proc_nice_basic.phpt @@ -13,7 +13,7 @@ if(!function_exists('proc_nice')) die("skip. proc_nice not available "); <?php function getNice($id) { - $res = shell_exec('ps -p ' . $id .' -o "%p %n"'); + $res = shell_exec('ps -p ' . $id .' -o pid -o ni'); preg_match('/^\s*\w+\s+\w+\s*(\d+)\s+(\d+)/m', $res, $matches); if (count($matches) > 2) return $matches[2]; |