[#40961] [Bug #3137] complex.rb changes exceptions of Math — Yusuke Endoh <redmine@...>

Bug #3137: complex.rb changes exceptions of Math

15 messages 2010/04/12

[#41038] Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...>

こんにちは!アーロンです。

17 messages 2010/04/22
[#41039] Re: Windows と DL が使用条件の libffi — "U.Nakamura" <usa@...> 2010/04/22

こんにちは、なかむら(う)です。

[#41040] Re: Windows と DL が使用条件の libffi — "NARUSE, Yui" <naruse@...> 2010/04/22

成瀬です。

[#41059] Re: Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...> 2010/04/26

2010/4/21 NARUSE, Yui <naruse@airemix.jp>:

[#41060] Re: Windows と DL が使用条件の libffi — Yugui <yugui@...> 2010/04/26

2010/4/26 Aaron Patterson <aaron.patterson@gmail.com>:

[#41067] [Feature #3203] LazySweepGC patch — Narihiro Nakamura <redmine@...>

Feature #3203: LazySweepGC patch

15 messages 2010/04/26
[#41069] Re: [Feature #3203] LazySweepGC patch — Yusuke ENDOH <mame@...> 2010/04/27

遠藤です。

[#41104] Rails3 M17N — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

29 messages 2010/04/30
[#41111] Re: Rails3 M17N — Urabe Shyouhei <shyouhei@...> 2010/04/30

Yukihiro Matsumoto さんは書きました:

[#41113] Re: Rails3 M17N — Yukihiro Matsumoto <matz@...> 2010/04/30

まつもと ゆきひろです

[ruby-dev:41010] [Bug #3168] TypeError in Timeout.timeout

From: Kazuhiro NISHIYAMA <redmine@...>
Date: 2010-04-18 23:00:07 UTC
List: ruby-dev #41010
Bug #3168: TypeError in Timeout.timeout
http://redmine.ruby-lang.org/issues/show/3168

起票者: Kazuhiro NISHIYAMA
ステータス: Open, 優先度: Normal
カテゴリ: lib, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2010-04-19 trunk 27394) [x86_64-linux]

http://d.hatena.ne.jp/moro/20100416/1271410920 で知ったのですが、timeout待ち用のスレッドが sleep の例外を無視してるのはまずいのではないでしょうか?


diff --git a/test/test_timeout.rb b/test/test_timeout.rb
index 9ec9c02..472e7ad 100644
--- a/test/test_timeout.rb
+++ b/test/test_timeout.rb
@@ -23,4 +23,12 @@ class TestTimeout < Test::Unit::TestCase
     end
     assert !@flag, "[ruby-dev:38319]"
   end
+
+  def test_cannot_convert_into_time_interval
+    aoe = Thread.abort_on_exception
+    Thread.abort_on_exception = true
+    Timeout.timeout(1.i) { sleep 0.1 }
+  ensure
+    Thread.abort_on_exception = aoe
+  end
 end


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next