Make socket path shorter for ext/sockets/tests/socket_cmsg_{rights|credentials}.phpt

When running in CI it fails when path/address is longer 108
This commit is contained in:
Andy Postnikov 2022-05-24 02:12:58 +03:00 committed by Jakub Zelenka
parent b0cc5ed91f
commit c58241a003
No known key found for this signature in database
GPG key ID: 1C0779DC5C0A9DE4
2 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@ die('skip SO_PASSCRED is not defined');
--FILE--
<?php
include __DIR__."/mcast_helpers.php.inc";
$path = __DIR__ . "/socket_cmsg_credentials.sock";
$path = sys_get_temp_dir() . "/socket_cmsg_credentials.sock";
@unlink($path);
@ -55,7 +55,7 @@ var_dump($data['control'][0]['data']['pid'] === $pid);
?>
--CLEAN--
<?php
$path = __DIR__ . "/socket_cmsg_credentials.sock";
$path = sys_get_temp_dir() . "/socket_cmsg_credentials.sock";
@unlink($path);
--EXPECTF--
creating send socket

View file

@ -11,14 +11,10 @@ die('skip not for Microsoft Windows');
if (strtolower(substr(PHP_OS, 0, 3)) == 'aix') {
die('skip not for AIX');
}
--CLEAN--
<?php
$path = __DIR__ . "/socket_cmsg_rights.sock";
@unlink($path);
--FILE--
<?php
include __DIR__."/mcast_helpers.php.inc";
$path = __DIR__ . "/socket_cmsg_rights.sock";
$path = sys_get_temp_dir() . "/socket_cmsg_rights.sock";
@unlink($path);
@ -78,6 +74,10 @@ if ($data["control"]) {
var_dump($data);
}
?>
--CLEAN--
<?php
$path = sys_get_temp_dir() . "/socket_cmsg_rights.sock";
@unlink($path);
--EXPECTF--
creating send socket
object(Socket)#%d (0) {