com php-src: Add test for pcntl_getpriority() basic b ehaviour: ext/pcntl/tests/pcntl_getpriority_basic.php t
| From: | Peter Kokot | Date: | Sat, 09 Feb 2019 01:39:46 +0000 |
| Subject: | com php-src: Add test for pcntl_getpriority() basic b ehaviour: ext/pcntl/tests/pcntl_getpriority_basic.php t | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104492@lists.php.net to get a copy of this message | ||
Commit: d22dd5f93a687ed208ca39e451ae5ab7d7dc6be3
Author: Er Galvão Abbott <galvao@galvao.eti.br> Sat, 28 Oct 2017 21:23:42 -0200
Committer: Peter Kokot <peterkokot@gmail.com> Sat, 9 Feb 2019 02:39:46 +0100
Parents: 0506c0224a485812e7f675cb808432f5f98a4412
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d22dd5f93a687ed208ca39e451ae5ab7d7dc6be3
Log:
Add test for pcntl_getpriority() basic behaviour
Changed paths:
A ext/pcntl/tests/pcntl_getpriority_basic.phpt
Diff:
diff --git a/ext/pcntl/tests/pcntl_getpriority_basic.phpt
b/ext/pcntl/tests/pcntl_getpriority_basic.phpt
new file mode 100644
index 0000000..42cd0f7
--- /dev/null
+++ b/ext/pcntl/tests/pcntl_getpriority_basic.phpt
@@ -0,0 +1,19 @@
+--TEST--
+pcntl_getpriority() - Basic behaviour
+--CREDITS--
+Er Galvão Abbott galvao@galvao.eti.br
+# TestFest 2017 PHPRS PHP UG 2017-10-29
+--SKIPIF--
+<?php
+if (!extension_loaded('pcntl')) {
+ die('skip - ext/pcntl not loaded');
+} else if (!function_exists('pcntl_getpriority')) {
+ die('skip - pcntl_getpriority doesn\'t exist');
+}
+?>
+--FILE--
+<?php
+var_dump(pcntl_getpriority());
+?>
+--EXPECTF--
+int(%d)