[Pkg-php-commits] [php/debian-sid] new debian patch broken_5.3_test-posix_uname.patch

Sean Finney seanius at debian.org
Wed Feb 17 22:07:47 UTC 2010


Author: Sean Finney <seanius at debian.org>
Description: Fix two failing tests
 * ext/posix/tests/posix_uname.phpt: removed
 * ext/posix/tests/posix_uname_basic.phpt: backported fix from upstream.
Bug: http://bugs.php.net/bug.php?id=50982
Bug-Debian: http://bugs.debian.org/570286

Closes: #570286
---
 debian/patches/broken_5.3_test-posix_uname.patch |   60 ++++++++++++++++++++++
 debian/patches/series                            |    1 +
 2 files changed, 61 insertions(+), 0 deletions(-)
 create mode 100644 debian/patches/broken_5.3_test-posix_uname.patch

diff --git a/debian/patches/broken_5.3_test-posix_uname.patch b/debian/patches/broken_5.3_test-posix_uname.patch
new file mode 100644
index 0000000..eb9dd15
--- /dev/null
+++ b/debian/patches/broken_5.3_test-posix_uname.patch
@@ -0,0 +1,60 @@
+Author: Sean Finney <seanius at debian.org>
+Description: Fix two failing tests
+ * ext/posix/tests/posix_uname.phpt: removed
+ * ext/posix/tests/posix_uname_basic.phpt: backported fix from upstream.
+Bug: http://bugs.php.net/bug.php?id=50982
+Bug-Debian: http://bugs.debian.org/570286
+--- php.orig/ext/posix/tests/posix_uname.phpt
++++ /dev/null
+@@ -1,33 +0,0 @@
+---TEST--
+-Test posix_uname()
+---DESCRIPTION--
+-Gets information about the system.
+-Source code: ext/posix/posix.c
+---CREDITS--
+-Falko Menge, mail at falko-menge dot de
+-PHP Testfest Berlin 2009-05-10
+---SKIPIF--
+-<?php 
+-	if (!extension_loaded('posix')) { 
+-        die('SKIP - POSIX extension not available');
+-    }
+-?>
+---FILE--
+-<?php
+-    var_dump(posix_uname());
+-?>
+-===DONE===
+---EXPECTF--
+-array(5) {
+-  ["sysname"]=>
+-  string(%d) "%s"
+-  ["nodename"]=>
+-  string(%d) "%s"
+-  ["release"]=>
+-  string(%d) "%s"
+-  ["version"]=>
+-  string(%d) "%s"
+-  ["machine"]=>
+-  string(%d) "%s"
+-}
+-===DONE===
+--- php.orig/ext/posix/tests/posix_uname_basic.phpt
++++ php/ext/posix/tests/posix_uname_basic.phpt
+@@ -9,7 +9,7 @@ Test posix_uname() function : basic func
+   echo "Basic test of POSIX uname function\n"; 
+   	
+   $uname = posix_uname();  
+-  
++  unset($uname['domainname']); 
+   print_r($uname);
+   
+ ?>
+@@ -25,4 +25,4 @@ Array
+     [machine] => %s
+ )
+ ===DONE====
+-  
+\ No newline at end of file
++  
diff --git a/debian/patches/series b/debian/patches/series
index 38efa12..1aebf73 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -41,3 +41,4 @@ ref-converted-to-value-in-_call.patch
 unaligned_memory_access.patch
 fix_broken_5.3_tests.patch
 dont-gitclean-in-build.patch
+broken_5.3_test-posix_uname.patch
-- 
1.6.3.3




More information about the Pkg-php-commits mailing list