Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public function testFailureInChildProcessHandleMultiThread(array $userFunctions,
$processManager->execute($userFunctions);
$this->fail('Exception was not handled');
} catch (\RuntimeException $exception) {
if (false !== strpos($exception->getMessage(), 'Warning: pcntl_fork(): Error 12')) {
$this->markTestSkipped('Cannot allocate memory during running pcntl_fork');
}

$this->assertEquals('Fail in child process', $exception->getMessage());
}
}
Expand Down Expand Up @@ -117,6 +121,10 @@ public function testSuccessChildProcessHandleMultiThread(array $userFunctions, i
try {
$processManager->execute($userFunctions);
} catch (\RuntimeException $exception) {
if (false !== strpos($exception->getMessage(), 'Warning: pcntl_fork(): Error 12')) {
$this->markTestSkipped('Cannot allocate memory during running pcntl_fork');
}

$this->fail('Exception was not handled');
}
}
Expand Down