Skip to content

Commit

Permalink
merged branch beberlei/ProcessPipesWindows (PR #2483)
Browse files Browse the repository at this point in the history
Commits
-------

fee217f Update tests/Symfony/Tests/Component/Process/ProcessTest.php
d58e682 GH-2287 - Skip Process:processTest on Windows due to PHP bug #60120

Discussion
----------

[Process] Test with pipes hang on windows

Rebased onto 2.0
  • Loading branch information
fabpot committed Oct 26, 2011
2 parents 5404a46 + fee217f commit 6c538df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Symfony/Tests/Component/Process/ProcessTest.php
Expand Up @@ -55,6 +55,10 @@ public function testProcessResponses($expected, $getter, $code)
*/
public function testProcessPipes($expected, $code)
{
if (strpos(PHP_OS, "WIN") === 0 && version_compare(phpversion(), "5.3.9", "<")) {
$this->markTestSkipped('Test hangs on Windows & PHP due to https://bugs.php.net/bug.php?id=60120 fixed in http://svn.php.net/viewvc?view=revision&revision=318366');
}

$p = new Process(sprintf('php -r %s', escapeshellarg($code)));
$p->setStdin($expected);
$p->run();
Expand Down

0 comments on commit 6c538df

Please sign in to comment.