[DRE-commits] [ruby-ffi] 01/01: Disable racy specs
zeha at debian.org
zeha at debian.org
Thu Apr 9 10:53:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
zeha pushed a commit to branch master
in repository ruby-ffi.
commit 4af9bae36c63c4aa9ad130defa64a0bdfe975d4b
Author: Christian Hofstaedtler <zeha at debian.org>
Date: Thu Apr 9 12:53:32 2015 +0200
Disable racy specs
See upstream bug: https://github.com/ffi/ffi/issues/427
---
debian/patches/disable-racy-specs.patch | 49 +++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 50 insertions(+)
diff --git a/debian/patches/disable-racy-specs.patch b/debian/patches/disable-racy-specs.patch
new file mode 100644
index 0000000..10550b7
--- /dev/null
+++ b/debian/patches/disable-racy-specs.patch
@@ -0,0 +1,49 @@
+Description: Disable racy specs
+Author: Christian Hofstaedtler <zeha at debian.org>
+Origin: vendor
+Bug: https://github.com/ffi/ffi/issues/427
+---
+diff --git a/spec/ffi/managed_struct_spec.rb b/spec/ffi/managed_struct_spec.rb
+index 99e0f54..4248455 100644
+--- a/spec/ffi/managed_struct_spec.rb
++++ b/spec/ffi/managed_struct_spec.rb
+@@ -38,7 +38,7 @@ describe "Managed Struct" do
+ expect(ClassWithSelfRef.new(ManagedStructTestLib.ptr_from_address(0x12345678)).class).to eq(ClassWithSelfRef)
+ end
+
+- it "should release memory properly" do
++ xit "should release memory properly" do
+ class PleaseReleaseMe < FFI::ManagedStruct
+ layout :i, :int
+ @@count = 0
+diff --git a/spec/ffi/pointer_spec.rb b/spec/ffi/pointer_spec.rb
+index 6071c71..173ff0f 100644
+--- a/spec/ffi/pointer_spec.rb
++++ b/spec/ffi/pointer_spec.rb
+@@ -170,7 +170,7 @@ describe "AutoPointer" do
+ def self.release(ptr); end
+ end
+
+- it "cleanup via default release method" do
++ xit "cleanup via default release method" do
+ expect(AutoPointerSubclass).to receive(:release).at_least(loop_count-wiggle_room).times
+ AutoPointerTestHelper.reset
+ loop_count.times do
+@@ -182,7 +182,7 @@ describe "AutoPointer" do
+ AutoPointerTestHelper.gc_everything loop_count
+ end
+
+- it "cleanup when passed a proc" do
++ xit "cleanup when passed a proc" do
+ # NOTE: passing a proc is touchy, because it's so easy to create a memory leak.
+ #
+ # specifically, if we made an inline call to
+@@ -200,7 +200,7 @@ describe "AutoPointer" do
+ AutoPointerTestHelper.gc_everything loop_count
+ end
+
+- it "cleanup when passed a method" do
++ xit "cleanup when passed a method" do
+ expect(AutoPointerTestHelper).to receive(:release).at_least(loop_count-wiggle_room).times
+ AutoPointerTestHelper.reset
+ loop_count.times do
diff --git a/debian/patches/series b/debian/patches/series
index 1790d40..a16f2eb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ mip64el.patch
arm64.patch
fix-for-variadic-float-double-values.diff
ppc64el.patch
+disable-racy-specs.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-ffi.git
More information about the Pkg-ruby-extras-commits
mailing list