php-src/ext/pcntl/tests/pcntl_getpriority_basic.phpt
Ilija Tovilo 181598d403
Fix getpriority test with negative return value
Negative return values are valid and denote higher priority.

https://man7.org/linux/man-pages/man2/setpriority.2.html
2023-09-22 10:25:15 +02:00

19 lines
347 B
PHP

--TEST--
pcntl_getpriority() - Basic behaviour
--CREDITS--
Er Galvão Abbott galvao@galvao.eti.br
# TestFest 2017 PHPRS PHP UG 2017-10-29
--EXTENSIONS--
pcntl
--SKIPIF--
<?php
if (!function_exists('pcntl_getpriority')) {
die('skip - pcntl_getpriority doesn\'t exist');
}
?>
--FILE--
<?php
var_dump(pcntl_getpriority());
?>
--EXPECTF--
int(%i)