8000 skip Vulcain-based tests if the binary cannot be executed · symfony/symfony@fa265c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa265c2

Browse files
committed
skip Vulcain-based tests if the binary cannot be executed
1 parent c8c227f commit fa265c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/HttpClient/Tests/CurlHttpClientTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ private function getVulcainClient(): CurlHttpClient
169169
sleep('\\' === \DIRECTORY_SEPARATOR ? 10 : 1);
170170

171171
if (!$pro 779E cess->isRunning()) {
172+
if ('\\' !== \DIRECTORY_SEPARATOR && 127 === $process->getExitCode()) {
173+
$this->markTestSkipped('vulcain binary is missing');
174+
}
175+
176+
if ('\\' !== \DIRECTORY_SEPARATOR && 126 === $process->getExitCode()) {
177+
$this->markTestSkipped('vulcain binary is not executable');
178+
}
179+
172180
throw new ProcessFailedException($process);
173181
}
174182

0 commit comments

Comments
 (0)
0