Sha256: f82a5a7bd1d14b3877deecf65694754f20e41117824604b66cb249ce8b2f105c

Contents?: true

Size: 912 Bytes

Versions: 11

Compression:

Stored size: 912 Bytes

Contents

#!/usr/bin/env ruby
require 'test/unit'

# require 'rubygems'
# require 'ruby-debug'; Debugger.start

# Test finish command
class TestFinish < Test::Unit::TestCase

  @@src_dir = File.dirname(__FILE__) unless 
    defined?(@@src_dir)

  require File.join(@@src_dir, 'helper')
  include TestHelper

  def test_basic
    testname='finish'
    # Ruby 1.8.6 and earlier have a trace-line number bug for return
    # statements.
#     filter = Proc.new{|got_lines, correct_lines|
#       [got_lines[31], got_lines[34]].flatten.each do |s|
#         s.sub!(/gcd.rb:\d+/, 'gcd.rb:13')
#       end
#       got_lines[32] = 'return a'
#     }
    Dir.chdir(@@src_dir) do 
      script = File.join('data', testname + '.cmd')
      assert_equal(true, 
                   run_debugger(testname,
                                "--script #{script} -- gcd.rb 3 5", 
                                nil, nil))
    end
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.8/gems/ruby-debug-0.10.4/test/test-finish.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-finish.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-finish.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-finish.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-finish.rb
vim-jar-0.0.3 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-finish.rb
vim-jar-0.0.2 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-finish.rb
vim-jar-0.0.1 bundler/ruby/1.8/gems/ruby-debug-0.10.4/test/test-finish.rb
ruby-debug-0.10.4 test/test-finish.rb
rackjour-0.1.8 vendor/gems/gems/ruby-debug-0.10.3/test/test-finish.rb
ruby-debug-0.10.3 test/test-finish.rb