public function AbstractProcessTest::testPhpDeadlock

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/AbstractProcessTest.php, line 381

Class

AbstractProcessTest
@author Robert Schönthal <seroscho@googlemail.com>

Namespace

Symfony\Component\Process\Tests

Code

public function testPhpDeadlock() {
  $this
    ->markTestSkipped('Can course php to hang');

  // Sleep doesn't work as it will allow the process to handle signals and close
  // file handles from the other end.
  $process = $this
    ->getProcess('php -r "while (true) {}"');
  $process
    ->start();

  // PHP will deadlock when it tries to cleanup $process
}