test/test-except-bug1.rb in ruby-debug-0.10.4 vs test/test-except-bug1.rb in ruby-debug-0.10.5.rc1
- old
+ new
@@ -1,31 +1,16 @@
#!/usr/bin/env ruby
-require 'test/unit'
-require 'rbconfig'
+require File.expand_path("../helper", __FILE__)
-# 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
+ ENV['COLUMNS'] = '80'
+ testname='except-bug1'
+ script = File.join('data', testname + '.cmd')
+ assert(run_debugger(testname, "--script #{script} --post-mortem ./example/#{testname}.rb"))
end
-
-end
+end unless defined?(JRUBY_VERSION) # post-mortem not yet supported on JRuby