mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
These tests don't work if run as root
This commit is contained in:
parent
adc8c296ac
commit
ac5718cdd3
2 changed files with 14 additions and 8 deletions
|
@ -1,15 +1,18 @@
|
|||
--TEST--
|
||||
SPL: DirectoryIterator test getGroup
|
||||
--CREDITS--
|
||||
--TEST--
|
||||
SPL: DirectoryIterator test getGroup
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (posix_geteuid() == 0) die('SKIP Cannot run test as root.');
|
||||
--CREDITS--
|
||||
Cesare D'Amico <cesare.damico@gruppovolta.it>
|
||||
Andrea Giorgini <agiorg@gmail.com>
|
||||
Filippo De Santis <fd@ideato.it>
|
||||
Daniel Londero <daniel.londero@gmail.com>
|
||||
Francesco Trucchia <ft@ideato.it>
|
||||
Jacopo Romei <jacopo@sviluppoagile.it>
|
||||
#Test Fest Cesena (Italy) on 2009-06-20
|
||||
--FILE--
|
||||
<?php
|
||||
#Test Fest Cesena (Italy) on 2009-06-20
|
||||
--FILE--
|
||||
<?php
|
||||
$dirname = 'DirectoryIterator_getGroup_basic';
|
||||
mkdir($dirname);
|
||||
$dir = new DirectoryIterator($dirname);
|
||||
|
@ -21,6 +24,6 @@ var_dump($expected == $actual);
|
|||
<?php
|
||||
$dirname = 'DirectoryIterator_getGroup_basic';
|
||||
rmdir($dirname);
|
||||
?>
|
||||
--EXPECTF--
|
||||
?>
|
||||
--EXPECTF--
|
||||
bool(true)
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
--TEST--
|
||||
SPL: DirectoryIterator test getOwner
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (posix_geteuid() == 0) die('SKIP Cannot run test as root.');
|
||||
--CREDITS--
|
||||
Cesare D'Amico <cesare.damico@gruppovolta.it>
|
||||
Andrea Giorgini <agiorg@gmail.com>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue