Sha256: c9e1b2f1473521743f42e5b84073482176c1eb8492482b5c4e9e8a4d4205d855
Contents?: true
Size: 846 Bytes
Versions: 9
Compression:
Stored size: 846 Bytes
Contents
#!/usr/bin/env ruby require 'test/unit' require 'rbconfig' # begin require 'rubygems' rescue LoadError end # require 'ruby-debug'; Debugger.start # Bug in Post-mortem command was not being able to show # variables on stack when stack stopped in a FIXNUM from 1/0. class TestExceptBug1 < Test::Unit::TestCase @@SRC_DIR = File.dirname(__FILE__) unless defined?(@@SRC_DIR) require File.join(@@SRC_DIR, 'helper') include TestHelper # Test post-mortem handling def test_pm_except_bug Dir.chdir(@@SRC_DIR) do ENV['COLUMNS'] = '80' testname='except-bug1' script = File.join('data', testname + '.cmd') assert_equal(true, run_debugger(testname, "--script #{script} --post-mortem " + "#{testname}.rb")) end end end
Version data entries
9 entries across 9 versions & 3 rubygems