Skip to content

Commit efd234c

Browse files
committed
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
1 parent ab67b52 commit efd234c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ext/sockets/tests/socket_cmsg_credentials.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ die('skip not for AIX');
1414
if (!defined('SO_PASSCRED')) {
1515
die('skip SO_PASSCRED is not defined');
1616
}
17+
--CLEAN--
18+
<?php
19+
$path = "./socket_cmsg_credentials.sock";
20+
@unlink($path);
1721
--FILE--
1822
<?php
1923
include __DIR__."/mcast_helpers.php.inc";
20-
$path = __DIR__ . "/socket_cmsg_credentials.sock";
24+
$path = "./socket_cmsg_credentials.sock";
2125

2226
@unlink($path);
2327

@@ -53,10 +57,6 @@ print_r($data);
5357
$pid = getmypid();
5458
var_dump($data['control'][0]['data']['pid'] === $pid);
5559
?>
56-
--CLEAN--
57-
<?php
58-
$path = __DIR__ . "/socket_cmsg_credentials.sock";
59-
@unlink($path);
6060
--EXPECTF--
6161
creating send socket
6262
object(Socket)#%d (0) {

ext/sockets/tests/socket_cmsg_rights.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ die('skip not for AIX');
1313
}
1414
--CLEAN--
1515
<?php
16-
$path = __DIR__ . "/socket_cmsg_rights.sock";
16+
$path = "./socket_cmsg_rights.sock";
1717
@unlink($path);
1818
--FILE--
1919
<?php
2020
include __DIR__."/mcast_helpers.php.inc";
21-
$path = __DIR__ . "/socket_cmsg_rights.sock";
21+
$path = "./socket_cmsg_rights.sock";
2222

2323
@unlink($path);
2424

0 commit comments

Comments
 (0)