minor #38649 [HttpClient] skip Vulcain-based tests if the binary cannot be executed (xabbuh)

This PR was merged into the 4.4 branch.

Discussion
----------

[HttpClient] skip Vulcain-based tests if the binary cannot be executed

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Commits
-------

fa265c2ee4 skip Vulcain-based tests if the binary cannot be executed
This commit is contained in:
Nyholm 2020-10-21 00:16:26 +02:00
commit e731e37109
No known key found for this signature in database
GPG Key ID: 1187B6F70C4F519E

View File

@ -169,6 +169,14 @@ class CurlHttpClientTest extends HttpClientTestCase
sleep('\\' === \DIRECTORY_SEPARATOR ? 10 : 1);
if (!$process->isRunning()) {
if ('\\' !== \DIRECTORY_SEPARATOR && 127 === $process->getExitCode()) {
$this->markTestSkipped('vulcain binary is missing');
}
if ('\\' !== \DIRECTORY_SEPARATOR && 126 === $process->getExitCode()) {
$this->markTestSkipped('vulcain binary is not executable');
}
throw new ProcessFailedException($process);
}