Chect what remains in TMPDIR
I guess it has a shared library file created by MJIT, but I want to make sure the fact.
This commit is contained in:
parent
41a275c89a
commit
7bdb999d0f
@ -466,13 +466,18 @@ class Gem::TestCase < Test::Unit::TestCase
|
|||||||
Dir.chdir @current_dir
|
Dir.chdir @current_dir
|
||||||
|
|
||||||
# Prevent a race condition on removing TMPDIR being written by MJIT
|
# Prevent a race condition on removing TMPDIR being written by MJIT
|
||||||
if defined?(RubyVM::MJIT.enabled?) && RubyVM::MJIT.enabled?
|
#if defined?(RubyVM::MJIT.enabled?) && RubyVM::MJIT.enabled?
|
||||||
RubyVM::MJIT.pause(wait: false)
|
# RubyVM::MJIT.pause(wait: false)
|
||||||
end
|
#end
|
||||||
FileUtils.rm_rf @tempdir
|
begin
|
||||||
if defined?(RubyVM::MJIT.enabled?) && RubyVM::MJIT.enabled?
|
FileUtils.rm_rf @tempdir
|
||||||
RubyVM::MJIT.resume
|
ensure
|
||||||
|
# mame: Temporal code for debugging. Let me confirm what remains in the directory
|
||||||
|
pp Dir.glob(File.join(@tempdir, "**", "{.*,*}")) if $!
|
||||||
end
|
end
|
||||||
|
#if defined?(RubyVM::MJIT.enabled?) && RubyVM::MJIT.enabled?
|
||||||
|
# RubyVM::MJIT.resume
|
||||||
|
#end
|
||||||
|
|
||||||
ENV.replace(@orig_env)
|
ENV.replace(@orig_env)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user