Closed
Description
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