From fb03442bda32628a8749ac038116b7debf23e745 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 16 May 2016 11:25:49 -0700 Subject: [PATCH] Don't run shmop tests on HHVM --- tests/CityTest.php | 4 ++++ tests/NetspeedcellTest.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/CityTest.php b/tests/CityTest.php index 85218ba..dcce110 100644 --- a/tests/CityTest.php +++ b/tests/CityTest.php @@ -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); diff --git a/tests/NetspeedcellTest.php b/tests/NetspeedcellTest.php index 7245d41..7b276a1 100644 --- a/tests/NetspeedcellTest.php +++ b/tests/NetspeedcellTest.php @@ -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);