1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert "test_gem_remote_fetcher.rb: give up testing MJIT here"

This reverts commit d12bcfc186.

pause on --jit-wait looks not working... I'll fix that first.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-11-22 03:39:07 +00:00
parent 38f7bb481e
commit 655257273a

View file

@ -124,13 +124,9 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg==
Gem::RemoteFetcher.fetcher = nil
@stub_ui = Gem::MockGemUi.new
@fetcher = Gem::RemoteFetcher.fetcher
RubyVM::MJIT.pause(wait: false) if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # sometimes timeout is too short for --jit-wait, but remote_fetcher can't configure timeout
end
def teardown
RubyVM::MJIT.resume if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # enable testing again
@fetcher.close_all
self.class.stop_servers
super