Skip to content

Commit 00c6fe4

Browse files
committed
Skip broken tests on legacy HHVM
1 parent 40a8f8d commit 00c6fe4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/AbstractProcessTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public function testStartWithCustomPipesWillAssignPipes()
8686

8787
public function testStartWithInvalidFileDescriptorPathWillThrow()
8888
{
89+
if (defined('HHVM_VERSION')) {
90+
$this->markTestSkipped('Not supported on legacy HHVM');
91+
}
92+
8993
$fds = array(
9094
4 => array('file', '/dev/does-not-exist', 'r')
9195
);
@@ -101,6 +105,9 @@ public function testStartWithExcessiveNumberOfFileDescriptorsWillThrow()
101105
if (PHP_VERSION_ID < 70000) {
102106
$this->markTestSkipped('PHP 7+ only, causes memory overflow on legacy PHP 5');
103107
}
108+
if (defined('HHVM_VERSION')) {
109+
$this->markTestSkipped('Not supported on legacy HHVM');
110+
}
104111

105112
$ulimit = exec('ulimit -n 2>&1');
106113
if ($ulimit < 1) {
@@ -273,6 +280,10 @@ public function testReceivesProcessOutputFromStdoutAttachedToSocket()
273280

274281
public function testReceivesProcessOutputFromStdoutRedirectedToSocketProcess()
275282
{
283+
if (defined('HHVM_VERSION')) {
284+
$this->markTestSkipped('Not supported on legacy HHVM');
285+
}
286+
276287
// create TCP/IP server on random port and wait for client connection
277288
$server = stream_socket_server('tcp://127.0.0.1:0');
278289

0 commit comments

Comments
 (0)