[DRE-commits] [ruby-kgio] 01/02: Add patch from Ubuntu to fix test failure on ppc64el
Hleb Valoshka
tsfgnu-guest at moszumanska.debian.org
Sat May 31 18:41:17 UTC 2014
This is an automated email from the git hooks/post-receive script.
tsfgnu-guest pushed a commit to branch master
in repository ruby-kgio.
commit a2dcc2900647ab8e1af9d65d31e603c192a875d1
Author: Hleb Valoshka <375gnu at gmail.com>
Date: Sat May 31 21:25:41 2014 +0300
Add patch from Ubuntu to fix test failure on ppc64el
---
debian/patches/fix-test-test_default_wait | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 28 insertions(+)
diff --git a/debian/patches/fix-test-test_default_wait b/debian/patches/fix-test-test_default_wait
new file mode 100644
index 0000000..63c7bf3
--- /dev/null
+++ b/debian/patches/fix-test-test_default_wait
@@ -0,0 +1,27 @@
+Description: fix test to take account of larger page sizes on ppc64el
+ The test_default_wait/TestDefaultWait test assume that a single read
+ can definatly switch a "full" pipe to one which will poll writable. The
+ kernel optimises for IO size by delaying the writable status until a
+ complete buffer slot is available; these are the system page. The test
+ already exhibits this by using large IOs compared to the common 4K page
+ size, but this is not sufficient in the face of the 64K page sizes on
+ ppc64el. Up this to 64k which represents the biggest page size available
+ in the kernel.
+Author: Andy Whitcroft <apw at canonical.com>
+Last-Update: 2014-04-29
+
+--- ruby-kgio-2.9.2.orig/test/test_default_wait.rb
++++ ruby-kgio-2.9.2/test/test_default_wait.rb
+@@ -39,7 +39,11 @@ class TestDefaultWait < Test::Unit::Test
+ diff = Time.now - t0
+ assert_in_delta diff, 1.1, 0.2
+
+- a.kgio_read(16384)
++ # Read enough to ensure one kernel buffer is cleared
++ # to ensure that poll et al will start saying we have
++ # enough space to allow a write. This should be at
++ # least the largest system page size we support.
++ a.kgio_read(65536)
+ assert_equal b, b.kgio_wait_writable(1.1)
+ end
+ end
diff --git a/debian/patches/series b/debian/patches/series
index d3dd385..a0da2b0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
fix-test
+fix-test-test_default_wait
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-kgio.git
More information about the Pkg-ruby-extras-commits
mailing list