1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00

These tests don't work when run as root

This commit is contained in:
Rasmus Lerdorf
2009-11-25 03:53:50 +00:00
parent 0085a466b6
commit f2a3441259
12 changed files with 15 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ Test function posix_seteuid() by substituting argument 1 with boolean values.
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com

View File

@@ -3,6 +3,7 @@ Test function posix_seteuid() by substituting argument 1 with emptyUnsetUndefNul
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com

View File

@@ -3,6 +3,7 @@ Test function posix_seteuid() by substituting argument 1 with float values.
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com

View File

@@ -3,6 +3,7 @@ Test function posix_seteuid() by substituting argument 1 with int values.
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com

View File

@@ -3,6 +3,7 @@ Test function posix_setgid() by substituting argument 1 with boolean values.
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com
@@ -36,4 +37,4 @@ bool(false)
bool(false)
bool(false)
===DONE===

View File

@@ -7,6 +7,7 @@ Francesco Fullone ff@ideato.it
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--FILE--
<?php

View File

@@ -3,6 +3,7 @@ Test function posix_setgid() by substituting argument 1 with float values.
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com
@@ -38,4 +39,4 @@ bool(false)
bool(false)
bool(false)
===DONE===

View File

@@ -3,6 +3,7 @@ Test function posix_setgid() by substituting argument 1 with int values.
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com
@@ -34,4 +35,4 @@ bool(false)
bool(false)
bool(false)
===DONE===

View File

@@ -3,6 +3,7 @@ Test function posix_setuid() by substituting argument 1 with boolean values.
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com

View File

@@ -3,6 +3,7 @@ Test function posix_setuid() by substituting argument 1 with emptyUnsetUndefNull
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com

View File

@@ -3,6 +3,7 @@ Test function posix_setuid() by substituting argument 1 with float values.
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com

View File

@@ -3,6 +3,7 @@ Test function posix_setuid() by substituting argument 1 with int values.
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com