Skip to content

Commit

Permalink
Skip tests causing segfaults on older PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed May 9, 2020
1 parent 16ed360 commit 3afd78b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sudo: false

dist: xenial
os: linux
language: php

php:
Expand All @@ -8,7 +8,7 @@ php:
- 7.4
- nightly

matrix:
jobs:
allow_failures:
- php: nightly
fast_finish: true
Expand All @@ -27,8 +27,8 @@ install:
composer update -n --prefer-dist;
fi

- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
- wget https://github.com/maglnet/ComposerRequireChecker/releases/download/2.0.0/composer-require-checker.phar
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar
- wget https://github.com/maglnet/ComposerRequireChecker/releases/download/2.1.0/composer-require-checker.phar

- composer show
- cd test/tls && ./regenerate.sh && cd -
Expand Down
16 changes: 16 additions & 0 deletions test/Connection/Http2ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ public function testTrailersWithoutTrailers(): \Generator

public function testCancellingWhileStreamingBody(): \Generator
{
if (\PHP_VERSION_ID < 70400) {
$this->markTestSkipped('Causes segfaults on PHP < 7.4');
}

$hpack = new HPack;

[$server, $client] = Socket\createPair();
Expand Down Expand Up @@ -224,6 +228,10 @@ public function testCancellingWhileStreamingBody(): \Generator

public function testTimeoutWhileStreamingBody(): \Generator
{
if (\PHP_VERSION_ID < 70400) {
$this->markTestSkipped('Causes segfaults on PHP < 7.4');
}

$hpack = new HPack;

[$server, $client] = Socket\createPair();
Expand Down Expand Up @@ -275,6 +283,10 @@ public function testTimeoutWhileStreamingBody(): \Generator

public function testCancellingPushPromiseBody(): \Generator
{
if (\PHP_VERSION_ID < 70400) {
$this->markTestSkipped('Causes segfaults on PHP < 7.4');
}

$hpack = new HPack;

[$server, $client] = Socket\createPair();
Expand Down Expand Up @@ -349,6 +361,10 @@ public function testCancellingPushPromiseBody(): \Generator

public function testInactivityWhileStreamingBody(): \Generator
{
if (\PHP_VERSION_ID < 70400) {
$this->markTestSkipped('Causes segfaults on PHP < 7.4');
}

$hpack = new HPack;

[$server, $client] = Socket\createPair();
Expand Down
4 changes: 4 additions & 0 deletions test/Connection/StreamLimitingPoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ class StreamLimitingPoolTest extends AsyncTestCase
{
public function testByHost(): \Generator
{
if (\PHP_VERSION_ID < 70400) {
$this->markTestSkipped('Causes segfaults on PHP < 7.4');
}

$client = (new HttpClientBuilder)
->usingPool(StreamLimitingPool::byHost(new UnlimitedConnectionPool, new LocalKeyedMutex))
->build();
Expand Down

0 comments on commit 3afd78b

Please sign in to comment.