[DRE-commits] [SCM] ruby-raindrops.git branch, master, updated. upstream/0.8.0-18-gafac482

Hleb Valoshka 375GNU at Gmail.COM
Tue Apr 17 18:17:21 UTC 2012


The following commit has been merged in the master branch:
commit aa364cbbc82f62f57442f18882f84a4be46bed5e
Author: Hleb Valoshka <375GNU at Gmail.COM>
Date:   Tue Apr 17 20:31:10 2012 +0300

    patch for test_incr_decr which fails under kfreebsd

diff --git a/debian/patches/0004-Try-to-fix-test_incr_decr-for-kfreebsd-hurd.patch b/debian/patches/0004-Try-to-fix-test_incr_decr-for-kfreebsd-hurd.patch
new file mode 100644
index 0000000..d4e3fba
--- /dev/null
+++ b/debian/patches/0004-Try-to-fix-test_incr_decr-for-kfreebsd-hurd.patch
@@ -0,0 +1,26 @@
+From: Hleb Valoshka <375GNU at Gmail.COM>
+Date: Tue, 17 Apr 2012 19:48:22 +0300
+Subject: Try to fix test_incr_decr for kfreebsd/hurd
+
+---
+ test/test_raindrops.rb |    6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/test/test_raindrops.rb b/test/test_raindrops.rb
+index 67089b7..ac5c03e 100644
+--- a/test/test_raindrops.rb
++++ b/test/test_raindrops.rb
+@@ -63,10 +63,10 @@ class TestRaindrops < Test::Unit::TestCase
+ 
+   def test_incr_decr
+     rd = Raindrops.new(1)
+-    fork { 1000000.times { rd.incr(0) } }
++    pid = fork { 1000000.times { rd.incr(0) } }
+     1000.times { rd.decr(0) }
+-    statuses = Process.waitall
+-    statuses.each { |pid, status| assert status.success? }
++    _, status = Process.waitpid2(pid)
++    assert status.success?
+     assert_equal [999000], rd.to_ary
+   end
+ 

-- 
ruby-raindrops.git



More information about the Pkg-ruby-extras-commits mailing list