]> granicus.if.org Git - php/commitdiff
Make more tests run os MacOS
authorGabriel Caruso <carusogabriel34@gmail.com>
Mon, 24 Dec 2018 16:27:53 +0000 (14:27 -0200)
committerGabriel Caruso <carusogabriel34@gmail.com>
Tue, 22 Jan 2019 21:17:27 +0000 (19:17 -0200)
ext/standard/tests/file/symlink_link_linkinfo_is_link_variation6.phpt
ext/standard/tests/general_functions/getservbyname_variation10.phpt
ext/standard/tests/general_functions/getservbyname_variation9.phpt
ext/standard/tests/general_functions/gettype_settype_variation2.phpt
ext/standard/tests/math/ceil_basic.phpt
ext/standard/tests/misc/time_nanosleep_error3.phpt

index d7383738563067c776bc3ae538e5efdcc5b2b39c..ddebad4f8c8e795a15576150a2678925b66ad800 100644 (file)
@@ -5,9 +5,6 @@ Test symlink(), linkinfo(), link() and is_link() functions : usage variations -
 if ( substr(PHP_OS, 0, 3) == 'WIN' ) {
     die('skip no symlinks on Windows');
 }
-if ( substr(PHP_OS, 0, 3) == 'MAC' ) {
-    die('skip Not valid for MacOS');
-}
 
 // Skip if being run by root (files are always readable, writeable and executable)
 $filename = dirname(__FILE__)."/symlink_link_linkinfo_is_link6_check_root.tmp";
index 4779efdcafb96ec0771212cef4da3f9dca4971df..db1d47f3ef862087fbdd41c55a2b3096b89cafd4 100644 (file)
@@ -1,11 +1,5 @@
 --TEST--
 Test function getservbyname() by substituting argument 2 with emptyUnsetUndefNull values.
---SKIPIF--
-<?php
-if(PHP_OS == 'Darwin') {
-  die("skip.. Mac OS X is fine with NULLs in getservbyname");
-}
-?>
 --FILE--
 <?php
 
index 720dbf0fbc9ccc196bc948f87d227a94a9d28620..2719679b307d0362852a48f3728008cc3df11809 100644 (file)
@@ -1,11 +1,5 @@
 --TEST--
 Test function getservbyname() by substituting argument 2 with boolean values.
---SKIPIF--
-<?php
-if(PHP_OS == 'Darwin') {
-  die("skip.. Mac OS X is fine with NULLs in getservbyname");
-}
-?>
 --FILE--
 <?php
 
index 99ab02a60da0cd5d2fd7d45be3ebed9a8229b833..d44c04e5dde74a51e9fdeed20f170782c2a03c40 100644 (file)
@@ -3,10 +3,11 @@ Test gettype() & settype() functions : usage variations
 --SKIPIF--
 <?php
 if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
-?>
-if ( strtoupper( substr(PHP_OS, 0, 3) ) == 'MAC' ) {
+
+if (PHP_OS_FAMILY === 'Darwin') {
     die('skip Do not run on MacOS');
 }
+?>
 --INI--
 precision=14
 --FILE--
index 9e06267d227a3cd651522a327ca489570f13f6cc..275ed485c288e7a09a88d22cc3d7a17a0ce4b3a3 100644 (file)
@@ -2,10 +2,6 @@
 Test ceil() - basic function test for ceil()
 --INI--
 precision=14
---SKIPIF--
-if (strtolower(PHP_OS) == 'darwin') {
-    die('SKIP OSX does weird things with -0 so this test doesn't work there');
-}
 --FILE--
 <?php
 /* Prototype  : float ceil  ( float $value  )
index d10ef922d0dbd46a1af36c6cf2c05ef8ea8a12ed..a419e82d0c19d391edbd3effd202cdfc43182d67 100644 (file)
@@ -2,7 +2,6 @@
 time_nanosleep — Delay for a number of seconds and nanoseconds
 --SKIPIF--
 <?php
-if (strpos(strtoupper(PHP_OS), 'WIN') !== false) die("skip Test is not valid for Windows");
 if (!function_exists('time_nanosleep')) die("skip");
 ?>
 --CREDITS--