Sha256: 7b8ee382c28fd2a7d64cd025e8305bb1e1326473215cea368bd83a0c3d79c456

Contents?: true

Size: 887 Bytes

Versions: 7

Compression:

Stored size: 887 Bytes

Contents

#!/usr/bin/env ruby
require 'test/unit'
require 'rubygems'; require 'require_relative'
require_relative 'fn_helper'

class TestTBreak < Test::Unit::TestCase

  include FnTestHelper

  def foo
    a = 3
    b = 4
    c = 5
    d = 6
  end

  def test_basic
    # Check that temporary breaks are, well, temporary.
    # The last "continue" below isn't used. It to make sure we finish
    # the test even when the breakpoint isn't temporary.
    cmds = ['tbreak TestTBreak#foo', 'continue', 'continue', 'continue'] 
    d = strarray_setup(cmds)
    d.start
    ##############################
    2.times do 
      foo
    end
    ##############################
    d.stop # ({:remove => true})
    out = ['-- ',
           '2.times do ',
           'Set temporary breakpoint 1: foo.rb:55 (@3)',
           "x1 ",
           'a = 3'
          ]
    compare_output(out, d, cmds)
  end

end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rbx-trepanning-0.0.7-universal-rubinius-1.2 test/functional/test-tbreak.rb
rbx-trepanning-0.0.6-universal-rubinius-1.2 test/functional/test-tbreak.rb
rbx-trepanning-0.0.5-universal-rubinius-1.2.1 test/functional/test-tbreak.rb
rbx-trepanning-0.0.4-universal-rubinius-1.2 test/functional/test-tbreak.rb
rbx-trepanning-0.0.3-universal-rubinius-1.2 test/functional/test-tbreak.rb
rbx-trepanning-0.0.2-universal-rubinius-1.2 test/functional/test-tbreak.rb
rbx-trepanning-0.0.1-universal-rubinius test/functional/test-tbreak.rb