svn: /php/php-src/ branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt
branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt
branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt trunk/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt
trunk/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt
| From: | Rasmus Lerdorf | Date: | Sun, 08 Jan 2012 18:43:30 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt trunk/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt trunk/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-67420@lists.php.net to get a copy of this message | ||
rasmus Sun, 08 Jan 2012 18:43:30 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321937
Log:
These tests don't work if run as root
Changed paths:
U php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt
U php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt
U php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt
U php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt
U php/php-src/trunk/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt
U php/php-src/trunk/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt
Modified: php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt 2012-01-08
18:41:53 UTC (rev 321936)
+++ php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt 2012-01-08
18:43:30 UTC (rev 321937)
@@ -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 @@
<?php
$dirname = 'DirectoryIterator_getGroup_basic';
rmdir($dirname);
-?>
---EXPECTF--
+?>
+--EXPECTF--
bool(true)
Modified: php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt 2012-01-08
18:41:53 UTC (rev 321936)
+++ php/php-src/branches/PHP_5_3/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt 2012-01-08
18:43:30 UTC (rev 321937)
@@ -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>
Modified: php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt 2012-01-08
18:41:53 UTC (rev 321936)
+++ php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt 2012-01-08
18:43:30 UTC (rev 321937)
@@ -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 @@
<?php
$dirname = 'DirectoryIterator_getGroup_basic';
rmdir($dirname);
-?>
---EXPECTF--
+?>
+--EXPECTF--
bool(true)
Modified: php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt 2012-01-08
18:41:53 UTC (rev 321936)
+++ php/php-src/branches/PHP_5_4/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt 2012-01-08
18:43:30 UTC (rev 321937)
@@ -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>
Modified: php/php-src/trunk/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt
===================================================================
--- php/php-src/trunk/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt 2012-01-08 18:41:53 UTC
(rev 321936)
+++ php/php-src/trunk/ext/spl/tests/DirectoryIterator_getGroup_basic.phpt 2012-01-08 18:43:30 UTC
(rev 321937)
@@ -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 @@
<?php
$dirname = 'DirectoryIterator_getGroup_basic';
rmdir($dirname);
-?>
---EXPECTF--
+?>
+--EXPECTF--
bool(true)
Modified: php/php-src/trunk/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt
===================================================================
--- php/php-src/trunk/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt 2012-01-08 18:41:53 UTC
(rev 321936)
+++ php/php-src/trunk/ext/spl/tests/DirectoryIterator_getOwner_basic.phpt 2012-01-08 18:43:30 UTC
(rev 321937)
@@ -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>