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.dam...@gruppovolta.it>
 Andrea Giorgini <agi...@gmail.com>
 Filippo De Santis <f...@ideato.it>
 Daniel Londero <daniel.lond...@gmail.com>
 Francesco Trucchia <f...@ideato.it>
 Jacopo Romei <jac...@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.dam...@gruppovolta.it>
 Andrea Giorgini <agi...@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.dam...@gruppovolta.it>
 Andrea Giorgini <agi...@gmail.com>
 Filippo De Santis <f...@ideato.it>
 Daniel Londero <daniel.lond...@gmail.com>
 Francesco Trucchia <f...@ideato.it>
 Jacopo Romei <jac...@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.dam...@gruppovolta.it>
 Andrea Giorgini <agi...@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.dam...@gruppovolta.it>
 Andrea Giorgini <agi...@gmail.com>
 Filippo De Santis <f...@ideato.it>
 Daniel Londero <daniel.lond...@gmail.com>
 Francesco Trucchia <f...@ideato.it>
 Jacopo Romei <jac...@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.dam...@gruppovolta.it>
 Andrea Giorgini <agi...@gmail.com>

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to