File: deactive_test_hash_ruby20.patch

package info (click to toggle)
ruby-thread-safe 0.3.5-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 728 kB
  • ctags: 1,100
  • sloc: java: 5,458; ruby: 2,821; makefile: 6
file content (18 lines) | stat: -rw-r--r-- 630 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: deactive test known to fail with Ruby 2.0
Bug: https://github.com/headius/thread_safe/issues/10
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2013-09-26

Index: ruby-thread-safe/test/test_hash.rb
===================================================================
--- ruby-thread-safe.orig/test/test_hash.rb
+++ ruby-thread-safe/test/test_hash.rb
@@ -3,6 +3,7 @@ require File.join(File.dirname(__FILE__)
 
 class TestHash < Minitest::Test
   def test_concurrency
+    pend if RUBY_VERSION =~ /2\.0/
     hsh = ThreadSafe::Hash.new
     (1..THREADS).map do |i|
       Thread.new do