These tests don't work if run as root

This commit is contained in:
Rasmus Lerdorf 2012-01-08 18:43:30 +00:00
parent adc8c296ac
commit ac5718cdd3
2 changed files with 14 additions and 8 deletions

View file

@ -1,5 +1,8 @@
--TEST-- --TEST--
SPL: DirectoryIterator test getGroup SPL: DirectoryIterator test getGroup
--SKIPIF--
<?php
if (posix_geteuid() == 0) die('SKIP Cannot run test as root.');
--CREDITS-- --CREDITS--
Cesare D'Amico <cesare.damico@gruppovolta.it> Cesare D'Amico <cesare.damico@gruppovolta.it>
Andrea Giorgini <agiorg@gmail.com> Andrea Giorgini <agiorg@gmail.com>

View file

@ -1,5 +1,8 @@
--TEST-- --TEST--
SPL: DirectoryIterator test getOwner SPL: DirectoryIterator test getOwner
--SKIPIF--
<?php
if (posix_geteuid() == 0) die('SKIP Cannot run test as root.');
--CREDITS-- --CREDITS--
Cesare D'Amico <cesare.damico@gruppovolta.it> Cesare D'Amico <cesare.damico@gruppovolta.it>
Andrea Giorgini <agiorg@gmail.com> Andrea Giorgini <agiorg@gmail.com>