[#37008] [Bug #705] sample/test.rb:1829: [BUG] Segmentation fault — pegacorn jp <redmine@...>
Bug #705: sample/test.rb:1829: [BUG] Segmentation fault
[#37009] add RUNRUBYOPT in mswin32 Makefile.sub — Masaki Suketa <masaki.suketa@...>
助田です。
[#37026] :FOO === "FOO" => true and case/when behavior — keiju@... (Keiju ISHITSUKA)
けいじゅ@いしつかです.
[#37027] Re: [Feature #711] M17N of irb — keiju@... (keiju ISHITSUKA)
けいじゅ@いしつかです.
[#37028] [Backport #716] Hash#key — "rubikitch ." <redmine@...>
Backport #716: Hash#key
チケット #716 が更新されました。 (by Akinori MUSHA)
[#37050] [Feature #735] Date#inspect — "rubikitch ." <redmine@...>
Feature #735: Date#inspect
> 「inspectは人間に優しい文字列化」という観点から、Date#inspectの出力はふさわしくないと思います。
[#37075] [Feature #747] /\A/u ignores BOM — Shyouhei Urabe <redmine@...>
Feature #747: /\A/u ignores BOM
卜部です。
[#37095] ruby1.9 segmentation fault — keiju@... (Keiju ISHITSUKA)
けいじゅ@いしつかです.
[#37117] test/webrick/test_server.rb doesn't finish — shinichiro.h <shinichiro.hamaji@...>
浜地といいます。
[#37126] Re: [ruby-cvs:27470] Ruby:r20251 (trunk): * lib/time.rb: according to RFC2822, -0000 means local time, +0000 — Tanaka Akira <akr@...>
In article <200811181512.mAIFC3YP006108@ci.ruby-lang.org>,
[#37142] eval with binding — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
[#37146] Re: [ruby-cvs:27544] Ruby:r20326 (ruby_1_9_1): merges r20298 from trunk into ruby_1_9_1. — Yukihiro Matsumoto <matz@...>
まつもと ゆきひろです
[#37156] [Bug #780] Time#strftime で、フラグ 0 が幅と解釈される — tadayoshi funaba <redmine@...>
Bug #780: Time#strftime で、フラグ 0 が幅と解釈される
[#37158] [Bug #782] 余分な外部シンボル — Tadashi Saito <redmine@...>
Bug #782: 余分な外部シンボル
[#37161] m17n of irb — "Yugui (Yuki Sonoda)" <yugui@...>
Yuguiです。
けいじゅ@いしつかです.
keiju ISHITSUKA さんは書きました:
まつもと ゆきひろです
Yuguiです。
まつもと ゆきひろです
Yukihiro Matsumoto さんは書きました:
Yuguiです。
まつもと ゆきひろです
けいじゅ@いしつかです.
まつもと ゆきひろです
けいじゅ@いしつかです.
まつもと ゆきひろです
[#37168] [Bug #786] Time#strftime で %s が負である場合に桁を間違える — tadayoshi funaba <redmine@...>
Bug #786: Time#strftime で %s が負である場合に桁を間違える
まつもと ゆきひろです
[#37187] [Bug #793] BigDecimal('Infinity').to_r が零になる — tadayoshi funaba <redmine@...>
Bug #793: BigDecimal('Infinity').to_r が零になる
まつもと ゆきひろです
[#37190] [Bug #795] test_gdbm.rb: tmptest_gdbm_,tmptest_gdbm_rdonlyが残っているとErrorになる — Kazuhiro NISHIYAMA <redmine@...>
Bug #795: test_gdbm.rb: tmptest_gdbm_,tmptest_gdbm_rdonlyが残っているとErrorになる
まつもと ゆきひろです
[#37210] RSS::Maker.create(version) — "Akinori MUSHA" <knu@...>
RSS::Maker で、 "2.0" 等の文字列でフィードのフォーマットを渡す
須藤です。
At Thu, 27 Nov 2008 19:11:01 +0900,
須藤です。
At Sat, 29 Nov 2008 17:18:20 +0900,
須藤です。
At Mon, 1 Dec 2008 21:48:34 +0900,
須藤です。
At Mon, 8 Dec 2008 20:28:44 +0900,
[#37213] Re: [ruby-cvs:27586] Ruby:r20368 (trunk): * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return — Tadayoshi Funaba <tadf@...>
> * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return
まつもと ゆきひろです
まつもと ゆきひろです
斎藤と申します。
まつもと ゆきひろです
斎藤です。
[ruby-dev:37119] test/rinda/test_rinda.rb fails occasionally
浜地です。
なんか体感で 1/5 くらいの確率で test_rinda.rb が
1) Failure:
test_core_03_notify(Rinda::TupleSpaceTest) [/home/i/src/ruby_orig/test/rinda/test_rinda.rb:396]:
<[0, 3]> expected but was
<[0, 1]>.
などと言ってコケるので、少し眺めてみました。
よくわかってませんが MockClock が mock しきれてなくて
ちょっとずれてるんじゃないかと思います。
expire する timeout をちょっとゆとりを加えてやると
100回やって100回通ったのでまぁマシになってはいるのでないかと。
さらにレアな
1) Failure:
test_core_03_notify(Rinda::TupleSpaceTest) [/home/i/src/ruby/test/rinda/test_rin
da.rb:408]:
<["delete", {"message"=>"second", "name"=>"1"}]> expected but was
<["close"]>.
の方ですが(数十回に1回出る程度?)、これも notify3 の
timeout にゆとりを持たせたら出なくなったように思います。
ついでに sleep の意図がよくわからなかったので
コメントを足しておいたのと、 listener1 と listener2 で
スタイルが違うことに意味を見出せなかったのでいじっておきました。
マジメに修正するならおそらく MockClock を
deterministic な形に書き直すべきなのかな、
と思いますが確信はありません。
Index: test/rinda/test_rinda.rb
===================================================================
--- test/rinda/test_rinda.rb (revision 20267)
+++ test/rinda/test_rinda.rb (working copy)
@@ -317,8 +317,8 @@
def test_core_03_notify
notify1 = @ts.notify(nil, [:req, Integer])
- notify2 = @ts.notify(nil, [:ans, Integer], 5)
- notify3 = @ts.notify(nil, {"message"=>String, "name"=>String}, 5)
+ notify2 = @ts.notify(nil, [:ans, Integer], 8)
+ notify3 = @ts.notify(nil, {"message"=>String, "name"=>String}, 8)
@ts.write({"message"=>"first", "name"=>"3"}, 3)
@ts.write({"message"=>"second", "name"=>"1"}, 1)
@@ -347,18 +347,18 @@
result = nil
lv = 0
n = 0
- notify2.each do |ev|
+ notify2.each do |ev, tuple|
n += 1
- if ev[0] == 'write'
+ if ev == 'write'
lv = lv + 1
- elsif ev[0] == 'take'
+ elsif ev == 'take'
lv = lv - 1
- elsif ev[0] == 'close'
+ elsif ev == 'close'
result = [lv, n]
break
end
assert(lv >= 0)
- assert_equal([:ans, 10], ev[1])
+ assert_equal([:ans, 10], tuple)
end
result
end
@@ -385,13 +385,15 @@
sleep(4)
assert_equal(10, thread_join(taker))
+ # notify2 must not expire until this @ts.take.
+ # sleep(4) might be short enough for the timeout of notify2 (8 secs)
tuple = @ts.take([:ans, nil])
assert_equal(10, tuple[1])
assert_equal([], @ts.read_all([nil, nil]))
-
+
notify1.cancel
- sleep(3) # notify2 expired
-
+ sleep(7) # notify2 expired (sleep(4)+sleep(7) > 8)
+
assert_equal([0, 11], thread_join(listener1))
assert_equal([0, 3], thread_join(listener2))