Sha256: 2efccd9c0a94e54d5efabc5615c19cb41cb6a3d8d5dc69d2be20006bda395f5d
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
#!/usr/bin/env ruby require File.expand_path("../helper", __FILE__) # Test Post-mortem command class TestPM < Test::Unit::TestCase include TestHelper # Test post-mortem handling def test_basic # filter = Proc.new{|got_lines, correct_lines| # [got_lines[0], correct_lines[0]].each do |s| # s.sub!(/tdebug.rb:\d+/, 'rdebug:999') # end # } ENV['COLUMNS'] = '80' testname='post-mortem' script = File.join('data', testname + '.cmd') testname += '-osx' if Config::CONFIG['host_os'] =~ /^darwin/ assert(run_debugger(testname, "--script #{script} --post-mortem ./example/pm.rb")) end # Test post-mortem handling def test_pm_next ENV['COLUMNS'] = '80' testname='post-mortem-next' script = File.join('data', testname + '.cmd') assert(run_debugger(testname, "--script #{script} --post-mortem ./example/pm.rb")) end # Test Tracker #22118 post-mortem giving an error in show internal variables def test_pm_iv_bug ENV['COLUMNS'] = '80' testname='pm-bug' script = File.join('data', testname + '.cmd') assert(run_debugger(testname, "--script #{script} --post-mortem example/pm-bug.rb")) end end unless defined?(JRUBY_VERSION) # post-mortem not yet supported on JRuby
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-debug-0.10.5.rc1 | test/test-pm.rb |