skip posix 32-bit

This commit is contained in:
Andrea Faulds 2014-11-28 23:39:08 +00:00
parent f574ad140e
commit 088580557d
9 changed files with 13 additions and 4 deletions

View File

@ -1,7 +1,8 @@
--TEST--
Test posix_getgrgid() function : usage variations - parameter types
--SKIPIF--
<?php
<?php
PHP_INT_SIZE == 4 or die("skip - 32-bit only");
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
?>
--FILE--

View File

@ -2,6 +2,7 @@
Test posix_getpgid() function : variation
--SKIPIF--
<?php
PHP_INT_SIZE == 4 or die("skip - 32-bit only");
if((!extension_loaded("posix")) || (!function_exists("posix_getpgid"))) {
print "skip - POSIX extension not loaded or posix_getpgid() does not exist";
}

View File

@ -1,7 +1,8 @@
--TEST--
Test posix_getpwuid() function : usage variations - parameter types
--SKIPIF--
<?php
<?php
PHP_INT_SIZE == 4 or die("skip - 32-bit only");
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
?>
--FILE--

View File

@ -1,7 +1,8 @@
--TEST--
Test posix_kill() function : usage variations - first parameter type
--SKIPIF--
<?php
<?php
PHP_INT_SIZE == 4 or die("skip - 32-bit only");
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
?>
--FILE--

View File

@ -2,6 +2,7 @@
Test posix_kill() function : usage variations - second parameter type
--SKIPIF--
<?php
PHP_INT_SIZE == 4 or die("skip - 32-bit only");
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
?>
--FILE--

View File

@ -2,6 +2,7 @@
Test function posix_seteuid() by substituting argument 1 with float values.
--SKIPIF--
<?php
PHP_INT_SIZE == 4 or die("skip - 32-bit only");
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>

View File

@ -2,6 +2,7 @@
Test function posix_setgid() by substituting argument 1 with float values.
--SKIPIF--
<?php
PHP_INT_SIZE == 4 or die("skip - 32-bit only");
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>

View File

@ -2,6 +2,7 @@
Test function posix_setuid() by substituting argument 1 with float values.
--SKIPIF--
<?php
PHP_INT_SIZE == 4 or die("skip - 32-bit only");
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>

View File

@ -1,7 +1,8 @@
--TEST--
Test posix_strerror() function : usage variations
--SKIPIF--
<?php
<?php
PHP_INT_SIZE == 4 or die("skip - 32-bit only");
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
?>
--FILE--