ruby-changes:55007
From: hsbt <ko1@a...>
Date: Mon, 11 Mar 2019 19:09:53 +0900 (JST)
Subject: [ruby-changes:55007] hsbt:r67214 (trunk): Added to check MJIT constant for the Ruby 2.3-2.5.
hsbt 2019-03-11 19:09:48 +0900 (Mon, 11 Mar 2019) New Revision: 67214 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67214 Log: Added to check MJIT constant for the Ruby 2.3-2.5. This commit picked from https://github.com/ruby/webrick/commit/2c13beca2c25dc099b7ed20dbe4d7ede77dfef86 Co-authored-by: Colby Swandale <me@c...> Modified files: trunk/test/webrick/test_httpserver.rb trunk/test/webrick/test_server.rb Index: test/webrick/test_httpserver.rb =================================================================== --- test/webrick/test_httpserver.rb (revision 67213) +++ test/webrick/test_httpserver.rb (revision 67214) @@ -253,7 +253,7 @@ class TestWEBrickHTTPServer < Test::Unit https://github.com/ruby/ruby/blob/trunk/test/webrick/test_httpserver.rb#L253 server.virtual_host(WEBrick::HTTPServer.new(vhost_config)) Thread.pass while server.status != :Running - sleep 1 if RubyVM::MJIT.enabled? # server.status behaves unexpectedly with --jit-wait + sleep 1 if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # server.status behaves unexpectedly with --jit-wait assert_equal(1, started, log.call) assert_equal(0, stopped, log.call) assert_equal(0, accepted, log.call) Index: test/webrick/test_server.rb =================================================================== --- test/webrick/test_server.rb (revision 67213) +++ test/webrick/test_server.rb (revision 67214) @@ -65,7 +65,7 @@ class TestWEBrickServer < Test::Unit::Te https://github.com/ruby/ruby/blob/trunk/test/webrick/test_server.rb#L65 } TestWEBrick.start_server(Echo, config){|server, addr, port, log| true while server.status != :Running - sleep 1 if RubyVM::MJIT.enabled? # server.status behaves unexpectedly with --jit-wait + sleep 1 if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # server.status behaves unexpectedly with --jit-wait assert_equal(1, started, log.call) assert_equal(0, stopped, log.call) assert_equal(0, accepted, log.call) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/