add patch for online test

This commit is contained in:
Remi Collet 2015-03-03 12:34:32 +01:00
parent 86b5d5f80f
commit a4d8ecc36c
2 changed files with 15 additions and 0 deletions

12
pecl_http-online.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git a/tests/client003.phpt b/tests/client003.phpt
index a6b1a4c..bca3302 100644
--- a/tests/client003.phpt
+++ b/tests/client003.phpt
@@ -3,6 +3,7 @@ client once & wait
--SKIPIF--
<?php
include "skipif.inc";
+skip_online_test();
skip_client_test();
?>
--FILE--

View File

@ -37,6 +37,8 @@ Source0: http://pecl.php.net/get/%{proj_name}-%{version}%{?prever}.tgz
# From http://www.php.net/manual/en/http.configuration.php
Source1: %{proj_name}.ini
Patch0: %{proj_name}-online.patch
BuildRequires: php-devel >= 5.3.0
BuildRequires: php-hash
BuildRequires: php-iconv
@ -130,6 +132,7 @@ These are the files needed to compile programs using HTTP extension.
mv %{proj_name}-%{version}%{?prever} NTS
cd NTS
%patch0 -p1
extver=$(sed -n '/#define PHP_PECL_HTTP_VERSION/{s/.* "//;s/".*$//;p}' php_http.h)
if test "x${extver}" != "x%{version}%{?prever}"; then