From 8ba04bf54304c8013874028971a1e911f0977664 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 22 Nov 2016 22:02:46 +0200 Subject: [PATCH] disable tests/041 https://github.com/msgpack/msgpack-php/issues/108 https://github.com/msgpack/msgpack-php/pull/109 --- php-pecl-msgpack.spec | 2 ++ test041.patch | 50 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 test041.patch diff --git a/php-pecl-msgpack.spec b/php-pecl-msgpack.spec index ce346cc..6e5010c 100644 --- a/php-pecl-msgpack.spec +++ b/php-pecl-msgpack.spec @@ -12,6 +12,7 @@ License: PHP 3.01 Group: Development/Languages/PHP Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz # Source0-md5: 4d1db4592ffa4101601aefc794191de5 +Patch0: test041.patch URL: http://pecl.php.net/package/msgpack/ BuildRequires: %{php_name}-devel BuildRequires: rpmbuild(macros) >= 1.666 @@ -37,6 +38,7 @@ JSON. But unlike JSON, it is very fast and small. %prep %setup -qc mv %{modname}-%{version}/* . +%patch0 -p1 %build phpize diff --git a/test041.patch b/test041.patch new file mode 100644 index 0000000..ad13984 --- /dev/null +++ b/test041.patch @@ -0,0 +1,50 @@ +From d8bcd355bb16d4ad8c86f06d79741f573eea4f44 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= +Date: Tue, 22 Nov 2016 21:57:46 +0200 +Subject: [PATCH] update tests/041; fixes #108 + +- disable bin2hex - it's dumping internal memory? +- -0.0 is -0.0 in my platform +--- + tests/041.phpt | 10 ++-------- + 1 file changed, 2 insertions(+), 8 deletions(-) + +diff --git a/tests/041.phpt b/tests/041.phpt +index 6400fd9..0dcf5b0 100644 +--- a/tests/041.phpt ++++ b/tests/041.phpt +@@ -10,7 +10,6 @@ function test($type, $variable) { + var_dump($variable); + var_dump($unserialized); + +- echo bin2hex($serialized), PHP_EOL; + echo PHP_EOL; + } + +@@ -24,24 +23,19 @@ test('double -0.0:', -0.0); + double NaN: + float(NAN) + float(NAN) +-cb7ff8000000000000 + + double Inf: + float(INF) + float(INF) +-cb7ff0000000000000 + + double -Inf: + float(-INF) + float(-INF) +-cbfff0000000000000 + + double 0.0: + float(0) + float(0) +-cb0000000000000000 + + double -0.0: +-float(0) +-float(0) +-cb0000000000000000 ++float(-0) ++float(-0) -- 2.44.0