Project

General

Profile

Bug #1402

test_cookie(TestCookie)でtest-allが止まる

Added by znz (Kazuhiro NISHIYAMA) over 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.8dev (2009-04-22 revision 23257) [i686-linux]
[ruby-dev:38319]

Description

=begin
http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8-pth/last
のように ruby 1.8.8dev で --enable-pthread の場合に止まります。

挙動から推測すると、while修飾子の左がリテラルだとスレッドが
切り替わっていないような気がします。

% cat t.rb
require 'timeout'
@flag = true
Thread.start {
sleep 0.1
@flag = false
}
Timeout.timeout(1) {
nil while @flag
}
% ruby18 -vd t.rb
ruby 1.8.8dev (2009-04-22 revision 23257) [i686-linux]
=end


Related issues

Related to Ruby master - Bug #270: lazy timer thraed creationClosedActions

Associated revisions

Revision bd77dbc3
Added by nobu (Nobuyoshi Nakada) over 5 years ago

test_thread.rb: move thread switch test

  • test/ruby/test_thread.rb (test_switch_while_busy_loop): move
    from test/test_timeout.rb. [Bug #1402]

  • test/test_timeout.rb (test_timeout): no longer related to
    [Bug #1402]. [Bug #8523]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 46196
Added by nobu (Nobuyoshi Nakada) over 5 years ago

test_thread.rb: move thread switch test

  • test/ruby/test_thread.rb (test_switch_while_busy_loop): move
    from test/test_timeout.rb. [Bug #1402]

  • test/test_timeout.rb (test_timeout): no longer related to
    [Bug #1402]. [Bug #8523]

Revision 46196
Added by nobu (Nobuyoshi Nakada) over 5 years ago

test_thread.rb: move thread switch test

  • test/ruby/test_thread.rb (test_switch_while_busy_loop): move
    from test/test_timeout.rb. [Bug #1402]

  • test/test_timeout.rb (test_timeout): no longer related to
    [Bug #1402]. [Bug #8523]

Revision 46196
Added by nobu (Nobuyoshi Nakada) over 5 years ago

test_thread.rb: move thread switch test

  • test/ruby/test_thread.rb (test_switch_while_busy_loop): move
    from test/test_timeout.rb. [Bug #1402]

  • test/test_timeout.rb (test_timeout): no longer related to
    [Bug #1402]. [Bug #8523]

Revision 46196
Added by nobu (Nobuyoshi Nakada) over 5 years ago

test_thread.rb: move thread switch test

  • test/ruby/test_thread.rb (test_switch_while_busy_loop): move
    from test/test_timeout.rb. [Bug #1402]

  • test/test_timeout.rb (test_timeout): no longer related to
    [Bug #1402]. [Bug #8523]

Revision 46196
Added by nobu (Nobuyoshi Nakada) over 5 years ago

test_thread.rb: move thread switch test

  • test/ruby/test_thread.rb (test_switch_while_busy_loop): move
    from test/test_timeout.rb. [Bug #1402]

  • test/test_timeout.rb (test_timeout): no longer related to
    [Bug #1402]. [Bug #8523]

Revision 46196
Added by nobu (Nobuyoshi Nakada) over 5 years ago

test_thread.rb: move thread switch test

  • test/ruby/test_thread.rb (test_switch_while_busy_loop): move
    from test/test_timeout.rb. [Bug #1402]

  • test/test_timeout.rb (test_timeout): no longer related to
    [Bug #1402]. [Bug #8523]

History

#1

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r23268.
=end

Also available in: Atom PDF