Sha256: 3093897d827fbbdcd17b7071d32ba726566bfb1c85f02071a2f58a27d934ef97
Contents?: true
Size: 781 Bytes
Versions: 2
Compression:
Stored size: 781 Bytes
Contents
#!/usr/bin/env ruby require 'test/unit' require_relative '../../lib/trepanning' class TestTrepanCallBug < Test::Unit::TestCase def define_singleton_method_by_proc(obj, name, block) metaclass = class << obj; self; end metaclass.send(:define_method, name, block) end def test_debugger_call_bug $calls = [] mydbgr = nil 2.times do x = 1 mydbgr = Trepan.new core = mydbgr.core def core.event_processor_tp(tp) frame = tp.frame $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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trepanning-2.15.35 | test/functional/test-debugger-call-bug.rb |
trepanning-2.15.33 | test/functional/test-debugger-call-bug.rb |