diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-24 14:47:15 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-24 14:47:15 +0200 |
| commit | 45deb01cc2317f9dff3b5f49295b563b8f874c39 (patch) | |
| tree | 3e3070892e81a0268baed6cb19ec092d71748a67 /ext/pcntl | |
| parent | 97f994762f78bc6daa0159fd54bf5b1bef0a50a3 (diff) | |
| parent | edf7346810292967f41e60fb1474e09e1558862d (diff) | |
| download | php-git-45deb01cc2317f9dff3b5f49295b563b8f874c39.tar.gz | |
Merge branch 'PHP-7.4'
* PHP-7.4:
Skip large ftruncate test if large files not supported
Don't test "blocks" in lstat_stat_variation7.phpt
Increase FD used in php://fd test
Use posix_getuid() to check for root in pcntl_setpriority() test
Diffstat (limited to 'ext/pcntl')
| -rw-r--r-- | ext/pcntl/tests/pcntl_setpriority_basic.phpt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/pcntl/tests/pcntl_setpriority_basic.phpt b/ext/pcntl/tests/pcntl_setpriority_basic.phpt index 1f03fb2dc9..235b0ec9ce 100644 --- a/ext/pcntl/tests/pcntl_setpriority_basic.phpt +++ b/ext/pcntl/tests/pcntl_setpriority_basic.phpt @@ -5,14 +5,14 @@ Er Galvão Abbott galvao@galvao.eti.br # TestFest 2017 PHPRS PHP UG 2017-10-31 --SKIPIF-- <?php -if (!isset($_SERVER['SUDO_USER'])) { - die('skip - this functions needs to run with superuser'); -} - if (!extension_loaded('pcntl')) { - die('skip - ext/pcntl not loaded'); -} else if (!function_exists('pcntl_setpriority')) { - die('skip - pcntl_setpriority doesn\'t exist'); + die('skip ext/pcntl not loaded'); +} +if (!function_exists('pcntl_setpriority')) { + die('skip pcntl_setpriority doesn\'t exist'); +} +if (!function_exists('posix_getuid') || posix_getuid() !== 0) { + die('skip this functions needs to run with superuser'); } ?> --FILE-- |
