Sha256: 7e8d1faac1167b7a75d7d037b947d9daf6cee228eff590f4f6b05bd32b4dd5b1

Contents?: true

Size: 824 Bytes

Versions: 1

Compression:

Stored size: 824 Bytes

Contents

#!/usr/bin/env ruby
require File.expand_path("../helper", __FILE__)

# Test (mostly) invalid breakpoint commands
class TestBadBreak < Test::Unit::TestCase
  include TestHelper

  def test_basic
    testname = 'break_bad'
    script = File.join('data', testname + '.cmd')
    assert(run_debugger(testname, "--script #{script} -- ./example/gcd.rb 3 5"))
  end

  def test_tracelines
    testname = 'break_tracelines'
    script = File.join('data', testname + '.cmd')
    assert(run_debugger(testname, "--script #{script} -- ./example/gcd.rb 3 5"))
  end unless defined?(JRUBY_VERSION) # JRuby doesn't yet support tracelines

  def test_break_loop
    testname = 'break_loop_bug'
    script = File.join('data', testname + '.cmd')
    assert(run_debugger(testname, "--script #{script} -- ./example/bp_loop_issue.rb"))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-debug-0.10.5.rc1 test/test-break-bad.rb