File tree Expand file tree Collapse file tree 3 files changed +26
-6
lines changed Expand file tree Collapse file tree 3 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ task :default => [:test]
1111Rake ::TestTask . new do |t |
1212 t . libs << "test"
1313 t . libs << "test-base"
14- t . pattern = 'test/*_test.rb'
14+ t . pattern = 'test/**/* _test.rb'
1515 t . verbose = true
1616 t . warning = false
1717end
Original file line number Diff line number Diff line change 1+ require 'basic_test'
2+ require 'rd_test_base'
3+
4+ class RDFrameSegfaultTest < RDTestBase
5+ def test_segfault
6+ create_socket [ 'class Bar' ,
7+ 'define_method "boo" do |*params|' ,
8+ '"boo"' ,
9+ 'end' ,
10+ 'end' ,
11+ 'def foo(bar)' ,
12+ 'a = []' ,
13+ 'end' ,
14+ 'bar = Bar.new' ,
15+ 'foo(bar.boo)'
16+ ]
17+ run_to_line ( 7 )
18+ send_ruby ( "w" )
19+ read_frames
20+ send_cont
21+ end
22+ end
Original file line number Diff line number Diff line change 1- $:. unshift File . join ( File . dirname ( __FILE__ ) , '..' , 'lib' )
2-
31require 'test/unit'
4- require 'ruby-debug'
2+ require 'ruby-debug-ide '
53
64class XmlPrinterTest < Test ::Unit ::TestCase
75
@@ -61,12 +59,12 @@ def test_print_at_line
6159 printer = Debugger ::XmlPrinter . new ( interface )
6260 Debugger . start
6361 begin
64- printer . print_at_line ( 'test.rb' , 1 )
62+ printer . print_at_line ( Debugger . current_context , 'test.rb' , 1 )
6563 ensure
6664 Debugger . stop
6765 end
6866 test_path = File . join ( Dir . pwd , 'test.rb' )
69- expected = [ "<suspended file='#{ test_path } ' line='1' threadId='1' frames='2 '/>" ]
67+ expected = [ "<suspended file='#{ test_path } ' line='1' threadId='1' frames='5 '/>" ]
7068 assert_equal ( expected , interface . data )
7169 end
7270
You can’t perform that action at this time.
0 commit comments