@ruby is the target Ruby in bootstraptest
This commit is contained in:
parent
ab869d6b9b
commit
8d83334a69
@ -530,7 +530,7 @@ def cleanup_coredump
|
|||||||
core_path = "/tmp/bootstraptest-core.#{Time.now.utc.iso8601}"
|
core_path = "/tmp/bootstraptest-core.#{Time.now.utc.iso8601}"
|
||||||
warn "A core file is found. Saving it at: #{core_path.dump}"
|
warn "A core file is found. Saving it at: #{core_path.dump}"
|
||||||
FileUtils.mv('core', core_path)
|
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
|
end
|
||||||
FileUtils.rm_f Dir.glob('core.*')
|
FileUtils.rm_f Dir.glob('core.*')
|
||||||
FileUtils.rm_f @ruby+'.stackdump' if @ruby
|
FileUtils.rm_f @ruby+'.stackdump' if @ruby
|
||||||
|
Loading…
x
Reference in New Issue
Block a user