Skip to content

Commit

Permalink
Enable further tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Jul 16, 2020
1 parent 6ffe08d commit c1b5e7a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 0 additions & 2 deletions ext/standard/tests/general_functions/parse_ini_file.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
parse_ini_file() multiple calls
--SKIPIF--
<?php if( substr(PHP_OS, 0, 3) == 'WIN' ) die("skip Windows has different error message");?>
--FILE--
<?php

Expand Down
6 changes: 4 additions & 2 deletions ext/standard/tests/network/tcp6loop.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
Streams Based IPv6 TCP Loopback test
--SKIPIF--
<?php
/* If IPv6 is supported on the platform this will error out with code 111 - Connection refused.
/* If IPv6 is supported on the platform this will error out with code 111 - Connection refused (or code 10049 on Windows).
If IPv6 is NOT supported, $errno will be set to something else (indicating parse/getaddrinfo error)
Note: Might be a good idea to export an IPv6 support indicator (such as AF_INET6 exported by ext/sockets) */
@stream_socket_client('tcp://[::1]:0', $errno);
if ($errno != 111) die('skip IPv6 not supported.');
if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) {
die('skip IPv6 is not supported.');
}
?>
--FILE--
<?php
Expand Down
6 changes: 4 additions & 2 deletions ext/standard/tests/network/udp6loop.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Streams Based IPv6 UDP Loopback test
--SKIPIF--
<?php
/* If IPv6 is supported on the platform this will error out with code 111 -
* Connection refused. If IPv6 is NOT supported, $errno will be set to
* Connection refused (or code 10049 on Windows). If IPv6 is NOT supported, $errno will be set to
* something else (indicating parse/getaddrinfo error)
* Note: Might be a good idea to export an IPv6 support indicator
* (such as AF_INET6 exported by ext/sockets), however, since we
Expand All @@ -12,7 +12,9 @@ Streams Based IPv6 UDP Loopback test
*/

@stream_socket_client('tcp://[::1]:0', $errno);
if ($errno != 111) die('skip IPv6 not supported.');
if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) {
die('skip IPv6 is not supported.');
}
?>
--FILE--
<?php
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/tests/streams/bug76136.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Bug #76136: stream_socket_get_name should enclose IPv6 in brackets
--SKIPIF--
<?php
@stream_socket_client('tcp://[::1]:0', $errno);
if ($errno != 111) {
if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) {
die('skip IPv6 is not supported.');
}
?>
Expand Down
6 changes: 2 additions & 4 deletions ext/standard/tests/strings/bug24098.phpt
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
--TEST--
Bug #24098 (pathinfo() crash)
--SKIPIF--
<?php if (DIRECTORY_SEPARATOR == '\\') die("skip directory separator won't match expected output"); ?>
--FILE--
<?php
var_dump(pathinfo("/dsds.asa"));
?>
--EXPECT--
--EXPECTF--
array(4) {
["dirname"]=>
string(1) "/"
string(1) "%e"
["basename"]=>
string(8) "dsds.asa"
["extension"]=>
Expand Down

0 comments on commit c1b5e7a

Please sign in to comment.