Skip to content

ext/standard/tests/general_functions/proc_nice_basic.phpt only works at certain nice levels #11630

Closed
@orlitzky

Description

@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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions