]> granicus.if.org Git - php/commitdiff
skip this if we can't check the uid
authorAnatol Belski <ab@php.net>
Thu, 28 Aug 2014 20:22:38 +0000 (22:22 +0200)
committerAnatol Belski <ab@php.net>
Thu, 28 Aug 2014 20:22:38 +0000 (22:22 +0200)
ext/standard/tests/general_functions/proc_nice_variation5.phpt

index c22ca56ca45156f8bc00a0d0dd15b9bed3d80325..650b13c60c722395d681478f2ea468ac1eee3bf5 100644 (file)
@@ -8,6 +8,7 @@ Simone Gentili (sensorario@gmail.com)
 --SKIPIF--
 <?php
        if(!function_exists('proc_nice')) die("skip. proc_nice not available ");
+       if(!function_exists('posix_geteuid')) die("skip. posix_geteuid not available ");
        if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
 ?>
 --FILE--