Skip to content

Commit 04723f2

Browse files
committed
Make more tests run os MacOS
1 parent 89a4c17 commit 04723f2

File tree

6 files changed

+3
-22
lines changed

6 files changed

+3
-22
lines changed

ext/standard/tests/file/symlink_link_linkinfo_is_link_variation6.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ Test symlink(), linkinfo(), link() and is_link() functions : usage variations -
55
if ( substr(PHP_OS, 0, 3) == 'WIN' ) {
66
die('skip no symlinks on Windows');
77
}
8-
if ( substr(PHP_OS, 0, 3) == 'MAC' ) {
9-
die('skip Not valid for MacOS');
10-
}
118

129
// Skip if being run by root (files are always readable, writeable and executable)
1310
$filename = dirname(__FILE__)."/symlink_link_linkinfo_is_link6_check_root.tmp";

ext/standard/tests/general_functions/getservbyname_variation10.phpt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
--TEST--
22
Test function getservbyname() by substituting argument 2 with emptyUnsetUndefNull values.
3-
--SKIPIF--
4-
<?php
5-
if(PHP_OS == 'Darwin') {
6-
die("skip.. Mac OS X is fine with NULLs in getservbyname");
7-
}
8-
?>
93
--FILE--
104
<?php
115

ext/standard/tests/general_functions/getservbyname_variation9.phpt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
--TEST--
22
Test function getservbyname() by substituting argument 2 with boolean values.
3-
--SKIPIF--
4-
<?php
5-
if(PHP_OS == 'Darwin') {
6-
die("skip.. Mac OS X is fine with NULLs in getservbyname");
7-
}
8-
?>
93
--FILE--
104
<?php
115

ext/standard/tests/general_functions/gettype_settype_variation2.phpt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ Test gettype() & settype() functions : usage variations
33
--SKIPIF--
44
<?php
55
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
6-
?>
7-
if ( strtoupper( substr(PHP_OS, 0, 3) ) == 'MAC' ) {
6+
7+
if (PHP_OS_FAMILY === 'Darwin') {
88
die('skip Do not run on MacOS');
99
}
10+
?>
1011
--INI--
1112
precision=14
1213
--FILE--

ext/standard/tests/math/ceil_basic.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
Test ceil() - basic function test for ceil()
33
--INI--
44
precision=14
5-
--SKIPIF--
6-
if (strtolower(PHP_OS) == 'darwin') {
7-
die('SKIP OSX does weird things with -0 so this test doesn't work there');
8-
}
95
--FILE--
106
<?php
117
/* Prototype : float ceil ( float $value )

ext/standard/tests/misc/time_nanosleep_error3.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
time_nanosleep — Delay for a number of seconds and nanoseconds
33
--SKIPIF--
44
<?php
5-
if (strpos(strtoupper(PHP_OS), 'WIN') !== false) die("skip Test is not valid for Windows");
65
if (!function_exists('time_nanosleep')) die("skip");
76
?>
87
--CREDITS--

0 commit comments

Comments
 (0)