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

@ruby is the target Ruby in bootstraptest

This commit is contained in:
Takashi Kokubun 2020-12-13 23:33:54 -08:00
parent ab869d6b9b
commit 8d83334a69
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -530,7 +530,7 @@ def cleanup_coredump
core_path = "/tmp/bootstraptest-core.#{Time.now.utc.iso8601}"
warn "A core file is found. Saving it at: #{core_path.dump}"
FileUtils.mv('core', core_path)
system('gdb', RbConfig.ruby, '-c', core_path, '-ex', 'bt', '-batch')
system('gdb', @ruby, '-c', core_path, '-ex', 'bt', '-batch')
end
FileUtils.rm_f Dir.glob('core.*')
FileUtils.rm_f @ruby+'.stackdump' if @ruby