From 4525b60911c144a1af23def8fc06d9f6e3b27be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Pr=C3=A9vot?= Date: Sat, 1 Jul 2023 20:52:48 +0200 Subject: [PATCH 1/3] Fix executable bit --- Tests/ErrorProcessInitiator.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 Tests/ErrorProcessInitiator.php diff --git a/Tests/ErrorProcessInitiator.php b/Tests/ErrorProcessInitiator.php old mode 100755 new mode 100644 From 86ca4c74afe24bc1889bc45a20adbd47c3131c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Pr=C3=A9vot?= Date: Sat, 1 Jul 2023 20:52:48 +0200 Subject: [PATCH 2/3] Fix executable bit --- Tests/ErrorProcessInitiator.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 Tests/ErrorProcessInitiator.php diff --git a/Tests/ErrorProcessInitiator.php b/Tests/ErrorProcessInitiator.php old mode 100755 new mode 100644 From 1a44dc377ec86a50fab40d066cd061e28a6b482f Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 12 Jul 2023 13:45:09 +0200 Subject: [PATCH 3/3] [PhpUnitBridge] Kill the last concurrent process when it stales for more than 60s --- Tests/ProcessTest.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Tests/ProcessTest.php b/Tests/ProcessTest.php index 36acf02a..6e6ee8a4 100644 --- a/Tests/ProcessTest.php +++ b/Tests/ProcessTest.php @@ -66,11 +66,11 @@ public function testInvalidCwd() $cmd->run(); } + /** + * @group transient-on-windows + */ public function testThatProcessDoesNotThrowWarningDuringRun() { - if ('\\' === \DIRECTORY_SEPARATOR) { - $this->markTestSkipped('This test is transient on Windows'); - } @trigger_error('Test Error', \E_USER_NOTICE); $process = $this->getProcessForCode('sleep(3)'); $process->run(); @@ -130,12 +130,11 @@ public function testStopWithTimeoutIsActuallyWorking() $this->assertLessThan(15, microtime(true) - $start); } + /** + * @group transient-on-windows + */ public function testWaitUntilSpecificOutput() { - if ('\\' === \DIRECTORY_SEPARATOR) { - $this->markTestIncomplete('This test is too transient on Windows, help wanted to improve it'); - } - $p = $this->getProcess([self::$phpBin, __DIR__.'/KillableProcessWithOutput.php']); $p->start(); @@ -1538,6 +1537,9 @@ public function testEnvCaseInsensitiveOnWindows() } } + /** + * @group transient-on-windows + */ public function testNotTerminableInputPipe() { $process = $this->getProcess('echo foo'); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy