From 04723f21017c6ecd4c8d449d2801c2c79c7ecabd Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Mon, 24 Dec 2018 14:27:53 -0200 Subject: [PATCH] Make more tests run os MacOS --- .../file/symlink_link_linkinfo_is_link_variation6.phpt | 3 --- .../tests/general_functions/getservbyname_variation10.phpt | 6 ------ .../tests/general_functions/getservbyname_variation9.phpt | 6 ------ .../tests/general_functions/gettype_settype_variation2.phpt | 5 +++-- ext/standard/tests/math/ceil_basic.phpt | 4 ---- ext/standard/tests/misc/time_nanosleep_error3.phpt | 1 - 6 files changed, 3 insertions(+), 22 deletions(-) diff --git a/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation6.phpt b/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation6.phpt index d738373856..ddebad4f8c 100644 --- a/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation6.phpt +++ b/ext/standard/tests/file/symlink_link_linkinfo_is_link_variation6.phpt @@ -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"; diff --git a/ext/standard/tests/general_functions/getservbyname_variation10.phpt b/ext/standard/tests/general_functions/getservbyname_variation10.phpt index 4779efdcaf..db1d47f3ef 100644 --- a/ext/standard/tests/general_functions/getservbyname_variation10.phpt +++ b/ext/standard/tests/general_functions/getservbyname_variation10.phpt @@ -1,11 +1,5 @@ --TEST-- Test function getservbyname() by substituting argument 2 with emptyUnsetUndefNull values. ---SKIPIF-- - --FILE-- --FILE-- -if ( strtoupper( substr(PHP_OS, 0, 3) ) == 'MAC' ) { + +if (PHP_OS_FAMILY === 'Darwin') { die('skip Do not run on MacOS'); } +?> --INI-- precision=14 --FILE-- diff --git a/ext/standard/tests/math/ceil_basic.phpt b/ext/standard/tests/math/ceil_basic.phpt index 9e06267d22..275ed485c2 100644 --- a/ext/standard/tests/math/ceil_basic.phpt +++ b/ext/standard/tests/math/ceil_basic.phpt @@ -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-- --CREDITS-- -- 2.50.1