[php-src] Issue #11630: ext/standard/tests/general_functions/proc_nice_basic.phpt only works at certain nice levels
| From: | orlitzky | Date: | Sat, 08 Jul 2023 00:09:13 +0000 |
| Subject: | [php-src] Issue #11630: ext/standard/tests/general_functions/proc_nice_basic.phpt only works at certain nice levels | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244913@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11630
Author: orlitzky
### Description
This test tries to bump up the nice level by 5, and then checks that it was bumped by 5:
```
$delta = 5;
$pid = getmypid();
$niceBefore = getNice($pid);
proc_nice($delta);
$niceAfter = getNice($pid);
var_dump($niceBefore == ($niceAfter - $delta));
--EXPECT--
bool(true)
```
This is failing on my machine, and I'm pretty sure it's just because I'm already
running at a high "nice" level that can't be increased by 5 (the max is 19).
### PHP Version
php-8.2.8
### Operating System
_No response_