Sha256: 5e8e1d1e30b6270f1975aea004faaa217eca3aa4556c0a23ba591438c85dc6b7
Contents?: true
Size: 1.22 KB
Versions: 3
Compression:
Stored size: 1.22 KB
Contents
#!/usr/bin/env ruby require 'test/unit' # begin require 'rubygems' rescue LoadError end # require 'ruby-debug'; Debugger.start # Test --no-stop and $0 setting. class TestDollar0 < Test::Unit::TestCase @@SRC_DIR = File.join(Dir.pwd, File.dirname(__FILE__)) unless defined?(@@SRC_DIR) require File.join(@@SRC_DIR, 'helper') include TestHelper def test_basic testname='breakpoints' Dir.chdir(@@SRC_DIR) do home_save = ENV['HOME'] ENV['HOME'] = '.' filter = Proc.new{|got_lines, correct_lines| [got_lines, correct_lines].flatten.each do |s| s.gsub!(/.*dollar-0.rb$/, 'dollar-0.rb') end } assert_equal(true, run_debugger('dollar-0', '-nx --no-stop ./dollar-0.rb', nil, filter, false, '../bin/rdebug')) # Ruby's __FILE__ seems to prepend ./ when no directory was added. assert_equal(true, run_debugger('dollar-0b', '-nx --no-stop ' + File.join('..', 'test', 'dollar-0.rb'), nil, filter, false, '../bin/rdebug')) ENV['HOME'] = home_save end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
debugger-1.0.0 | test/test-dollar-0.rb |
debugger-1.0.0.rc2 | test/test-dollar-0.rb |
debugger-1.0.0.rc1 | test/test-dollar-0.rb |