Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  [Process] Fix failing tests causing segfaults
  • Loading branch information
xabbuh committed Feb 13, 2024
2 parents d4fd4a8 + 4fdf340 commit 8bda0be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ public function testFailingProcessWithMultipleCallsToProcGetStatus()
*/
public function testLongRunningProcessWithMultipleCallsToProcGetStatus()
{
$process = $this->getProcess('php -r "sleep(1); echo \'done\';"');
$process = $this->getProcess('sleep 1 && echo "done" && php -r "exit(0);"');
$process->start(static function () use ($process) {
return $process->isRunning();
});
Expand All @@ -1597,7 +1597,7 @@ public function testLongRunningProcessWithMultipleCallsToProcGetStatus()
*/
public function testLongRunningProcessWithMultipleCallsToProcGetStatusError()
{
$process = $this->getProcess('php -r "sleep(1); echo \'failure\'; exit(123);"');
$process = $this->getProcess('sleep 1 && echo "failure" && php -r "exit(123);"');
$process->start(static function () use ($process) {
return $process->isRunning();
});
Expand Down

0 comments on commit 8bda0be

Please sign in to comment.