Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Don't run shmop tests on HHVM
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed May 16, 2016
1 parent 59f5283 commit fb03442
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/CityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public function testCity()

public function testCityWithSharedMemory()
{
// HHVM doesn't support shared memory
if (defined('HHVM_VERSION')) {
$this->markTestSkipped();
}
geoip_load_shared_mem("tests/data/GeoIPCity.dat");

$gi = geoip_open("tests/data/GeoIPCity.dat", GEOIP_SHARED_MEMORY);
Expand Down
4 changes: 4 additions & 0 deletions tests/NetspeedcellTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ public function testNetspeedcell()

public function testNetspeedcellWithSharedMemory()
{
// HHVM doesn't support shared memory
if (defined('HHVM_VERSION')) {
$this->markTestSkipped();
}
geoip_load_shared_mem("tests/data/GeoIPNetSpeedCell.dat");

$gi = geoip_open("tests/data/GeoIPNetSpeedCell.dat", GEOIP_SHARED_MEMORY);
Expand Down

0 comments on commit fb03442

Please sign in to comment.