add patch for online test
This commit is contained in:
parent
86b5d5f80f
commit
a4d8ecc36c
12
pecl_http-online.patch
Normal file
12
pecl_http-online.patch
Normal 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--
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user