Issue #7681 has been updated by nobu (Nobuyoshi Nakada).


=begin
Seems a longstanding bug.

  $ cat bug-7681.rb
  class Bug7681 < Thread
    def initialize(*arg, &block)
      super(*arg) {yield(*arg)}
    end
  end

  $_ = '[Bug #7681]'
  p Thread.new {$_}.value
  p Bug7681.new {$_}.value

  $ ruby-1.9.2 -v bug-7681.rb
  ruby 1.9.2p323 (2012-05-21 revision 35743) [x86_64-darwin11]
  nil
  "[Bug #7681]"

  $ /usr/bin/ruby -v bug-7681.rb
  ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin11.0]
  nil
  "[Bug #7681]"

=end

----------------------------------------
Bug #7681: Flip-flop test failure under MinGW
https://bugs.ruby-lang.org/issues/7681#change-35439

Author: luislavena (Luis Lavena)
Status: Assigned
Priority: Urgent
Assignee: nobu (Nobuyoshi Nakada)
Category: test
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-01-11 trunk 38770) [x64-mingw32]


Hello,

Since r38747 test_shared_thread is failing under both x86 and x64 MinGW (GCC 4.7.2):

http://ci.rubyinstaller.org/view/All/job/ruby-trunk-x86-test-all/669/console

http://ci.rubyinstaller.org/view/All/job/ruby-trunk-x64-test-all/545/console

  1) Failure:
test_shared_thread(TestFlip) [C:/Users/Worker/Jenkins/workspace/ruby-trunk-x86-build/test/ruby/test_flip.rb:40]:
flip-flop should be separated per threads.
<[3, 4, 5]> expected but was
<[3, 4]>.



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