@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
1 changed files with 1 additions and 1 deletions

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