Sha256: 17d39aee904d6229da47512e170ad89127598a6155ff0fecd73fb47407a3c173

Contents?: true

Size: 627 Bytes

Versions: 12

Compression:

Stored size: 627 Bytes

Contents

#!/usr/bin/env ruby
require 'test/unit'
require_relative '../../lib/trepanning'

class TestTrepanCallBug < Test::Unit::TestCase

  def test_debugger_call_bug
    $calls = []
    mydbgr = nil
    2.times do
      x = 1
      mydbgr = Trepan.new()
      mydbgr.core.processor.define_singleton_method(:process_commands) do
        |frame|
        # p [frame.source_container, frame.source_location, @core.event].flatten
        $calls << [frame.source_container, frame.source_location].flatten
      end
      mydbgr.debugger
      y = 2
    end
    mydbgr.stop  
    assert_equal true, $calls.size > 0, $calls
  end
  
end






Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
trepanning-1.93.35 test/functional/test-debugger-call-bug.rb
trepanning-1.93.32 test/functional/test-debugger-call-bug.rb
trepanning-0.1.6 test/functional/test-debugger-call-bug.rb
trepanning-0.1.4 test/functional/test-debugger-call-bug.rb
trepanning-0.1.3 test/functional/test-debugger-call-bug.rb
trepanning-0.1.2 test/functional/test-debugger-call-bug.rb
trepanning-0.1.1 test/functional/test-debugger-call-bug.rb
trepanning-0.1.0 test/functional/test-debugger-call-bug.rb
trepanning-0.0.9 test/functional/test-debugger-call-bug.rb
trepanning-0.0.8 test/functional/test-debugger-call-bug.rb
trepanning-0.0.6 test/functional/test-debugger-call-bug.rb
trepanning-0.0.4 test/functional/test-debugger-call-bug.rb