debugger 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. data/CHANGELOG.md +3 -0
  2. data/README.md +2 -1
  3. data/Rakefile +4 -5
  4. data/bin/rdebug +29 -30
  5. data/lib/debugger.rb +0 -2
  6. data/lib/debugger/version.rb +1 -1
  7. data/lib/ruby-debug-base.rb +26 -27
  8. data/{cli → lib}/ruby-debug.rb +0 -0
  9. data/{cli → lib}/ruby-debug/command.rb +19 -20
  10. data/{cli → lib}/ruby-debug/commands/breakpoints.rb +0 -0
  11. data/{cli → lib}/ruby-debug/commands/catchpoint.rb +0 -0
  12. data/{cli → lib}/ruby-debug/commands/condition.rb +0 -0
  13. data/{cli → lib}/ruby-debug/commands/continue.rb +0 -0
  14. data/{cli → lib}/ruby-debug/commands/control.rb +0 -0
  15. data/{cli → lib}/ruby-debug/commands/display.rb +0 -0
  16. data/{cli → lib}/ruby-debug/commands/edit.rb +0 -0
  17. data/{cli → lib}/ruby-debug/commands/enable.rb +0 -0
  18. data/{cli → lib}/ruby-debug/commands/eval.rb +0 -0
  19. data/{cli → lib}/ruby-debug/commands/finish.rb +0 -0
  20. data/{cli → lib}/ruby-debug/commands/frame.rb +0 -0
  21. data/{cli → lib}/ruby-debug/commands/help.rb +0 -0
  22. data/{cli → lib}/ruby-debug/commands/info.rb +0 -0
  23. data/{cli → lib}/ruby-debug/commands/irb.rb +0 -0
  24. data/{cli → lib}/ruby-debug/commands/jump.rb +0 -0
  25. data/{cli → lib}/ruby-debug/commands/kill.rb +0 -0
  26. data/{cli → lib}/ruby-debug/commands/list.rb +0 -0
  27. data/{cli → lib}/ruby-debug/commands/method.rb +0 -0
  28. data/{cli → lib}/ruby-debug/commands/quit.rb +0 -0
  29. data/{cli → lib}/ruby-debug/commands/reload.rb +0 -0
  30. data/{cli → lib}/ruby-debug/commands/save.rb +0 -0
  31. data/{cli → lib}/ruby-debug/commands/set.rb +0 -0
  32. data/{cli → lib}/ruby-debug/commands/show.rb +0 -0
  33. data/{cli → lib}/ruby-debug/commands/skip.rb +0 -0
  34. data/{cli → lib}/ruby-debug/commands/source.rb +0 -0
  35. data/{cli → lib}/ruby-debug/commands/stepping.rb +0 -0
  36. data/{cli → lib}/ruby-debug/commands/threads.rb +0 -0
  37. data/{cli → lib}/ruby-debug/commands/tmate.rb +0 -0
  38. data/{cli → lib}/ruby-debug/commands/trace.rb +0 -0
  39. data/{cli → lib}/ruby-debug/commands/variables.rb +0 -0
  40. data/{cli → lib}/ruby-debug/debugger.rb +0 -0
  41. data/{cli → lib}/ruby-debug/helper.rb +0 -0
  42. data/{cli → lib}/ruby-debug/interface.rb +0 -0
  43. data/{cli → lib}/ruby-debug/processor.rb +0 -0
  44. data/test/helper.rb +14 -16
  45. data/test/{cli → lib}/commands/catchpoint_test.rb +4 -12
  46. data/test/{cli → lib}/commands/unit/regexp.rb +3 -7
  47. data/test/tdebug.rb +17 -18
  48. data/test/test-annotate.rb +2 -3
  49. data/test/test-break-bad.rb +4 -5
  50. data/test/test-breakpoints.rb +2 -3
  51. data/test/test-catch.rb +1 -2
  52. data/test/test-catch2.rb +1 -2
  53. data/test/test-catch3.rb +1 -2
  54. data/test/test-condition.rb +2 -3
  55. data/test/test-ctrl.rb +1 -2
  56. data/test/test-display.rb +3 -4
  57. data/test/test-dollar-0.rb +7 -8
  58. data/test/test-edit.rb +2 -3
  59. data/test/test-emacs-basic.rb +4 -5
  60. data/test/test-enable.rb +2 -3
  61. data/test/test-finish.rb +3 -4
  62. data/test/test-frame.rb +2 -3
  63. data/test/test-help.rb +6 -7
  64. data/test/test-hist.rb +4 -7
  65. data/test/test-info-thread.rb +2 -3
  66. data/test/test-info-var.rb +3 -4
  67. data/test/test-info.rb +2 -3
  68. data/test/test-init.rb +1 -2
  69. data/test/test-jump.rb +4 -5
  70. data/test/test-list.rb +3 -4
  71. data/test/test-method.rb +4 -5
  72. data/test/test-next.rb +2 -3
  73. data/test/test-output.rb +2 -3
  74. data/test/test-quit.rb +2 -3
  75. data/test/test-raise.rb +1 -2
  76. data/test/test-save.rb +2 -3
  77. data/test/test-scope-var.rb +2 -3
  78. data/test/test-setshow.rb +2 -3
  79. data/test/test-source.rb +2 -3
  80. data/test/test-stepping.rb +2 -3
  81. data/test/test-trace.rb +4 -5
  82. data/test/thread1.rb +1 -2
  83. metadata +76 -51
data/test/test-catch2.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test exception catching
@@ -15,7 +14,7 @@ class TestExceptionCatch2 < Test::Unit::TestCase
15
14
 
16
15
  def test_basic
17
16
  testname='catch2'
18
- Dir.chdir(@@SRC_DIR) do
17
+ Dir.chdir(@@SRC_DIR) do
19
18
  script = File.join('data', testname + '.cmd')
20
19
  assert_equal(true,
21
20
  run_debugger(testname,
data/test/test-catch3.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test exception catching
@@ -15,7 +14,7 @@ class TestExceptionCatch3 < Test::Unit::TestCase
15
14
 
16
15
  def test_basic
17
16
  testname='catch3'
18
- Dir.chdir(@@SRC_DIR) do
17
+ Dir.chdir(@@SRC_DIR) do
19
18
  script = File.join('data', testname + '.cmd')
20
19
  assert_equal(true,
21
20
  run_debugger(testname,
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test condition command
@@ -15,9 +14,9 @@ class TestConditionCommand < Test::Unit::TestCase
15
14
 
16
15
  def test_basic
17
16
  testname='condition'
18
- Dir.chdir(@@SRC_DIR) do
17
+ Dir.chdir(@@SRC_DIR) do
19
18
  script = File.join('data', testname + '.cmd')
20
- assert_equal(true,
19
+ assert_equal(true,
21
20
  run_debugger(testname,
22
21
  "--script #{script} -- ./gcd.rb 3 5"))
23
22
  end
data/test/test-ctrl.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # begin require 'rubygems' rescue LoadError end
4
3
  # require 'ruby-debug' ; Debugger.start
5
4
 
6
5
  require 'test/unit'
@@ -10,7 +9,7 @@ SRC_DIR = File.join(Dir.pwd, File.dirname(__FILE__)) unless
10
9
  $: << File.join(SRC_DIR, '..', dir)
11
10
  end
12
11
  require 'ruby_debug'
13
- require File.join(SRC_DIR, '..', 'cli', 'ruby-debug')
12
+ require 'ruby-debug'
14
13
 
15
14
  # Test Local Control Interface
16
15
  class TestCtrl < Test::Unit::TestCase
data/test/test-display.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test Display commands
@@ -16,10 +15,10 @@ class TestDisplay < Test::Unit::TestCase
16
15
  # Test commands in display.rb
17
16
  def test_basic
18
17
  testname='display'
19
- Dir.chdir(@@SRC_DIR) do
18
+ Dir.chdir(@@SRC_DIR) do
20
19
  script = File.join('data', testname + '.cmd')
21
- assert_equal(true,
22
- run_debugger(testname,
20
+ assert_equal(true,
21
+ run_debugger(testname,
23
22
  "--script #{script} -- ./gcd.rb 3 5"))
24
23
  end
25
24
  end
@@ -1,12 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test --no-stop and $0 setting.
8
7
  class TestDollar0 < Test::Unit::TestCase
9
-
8
+
10
9
  @@SRC_DIR = File.join(Dir.pwd, File.dirname(__FILE__)) unless
11
10
  defined?(@@SRC_DIR)
12
11
 
@@ -15,7 +14,7 @@ class TestDollar0 < Test::Unit::TestCase
15
14
 
16
15
  def test_basic
17
16
  testname='breakpoints'
18
- Dir.chdir(@@SRC_DIR) do
17
+ Dir.chdir(@@SRC_DIR) do
19
18
  home_save = ENV['HOME']
20
19
  ENV['HOME'] = '.'
21
20
  filter = Proc.new{|got_lines, correct_lines|
@@ -24,14 +23,14 @@ class TestDollar0 < Test::Unit::TestCase
24
23
  end
25
24
  }
26
25
 
27
- assert_equal(true,
28
- run_debugger('dollar-0',
26
+ assert_equal(true,
27
+ run_debugger('dollar-0',
29
28
  '-nx --no-stop ./dollar-0.rb',
30
29
  nil, filter, false, '../bin/rdebug'))
31
30
  # Ruby's __FILE__ seems to prepend ./ when no directory was added.
32
- assert_equal(true,
33
- run_debugger('dollar-0b',
34
- '-nx --no-stop ' +
31
+ assert_equal(true,
32
+ run_debugger('dollar-0b',
33
+ '-nx --no-stop ' +
35
34
  File.join('..', 'test', 'dollar-0.rb'),
36
35
  nil, filter, false, '../bin/rdebug'))
37
36
  ENV['HOME'] = home_save
data/test/test-edit.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test 'edit' command handling.
@@ -15,10 +14,10 @@ class TestEdit < Test::Unit::TestCase
15
14
 
16
15
  def test_basic
17
16
  testname='edit'
18
- Dir.chdir(@@SRC_DIR) do
17
+ Dir.chdir(@@SRC_DIR) do
19
18
  script = File.join('data', testname + '.cmd')
20
19
  ENV['EDITOR']='echo FAKE-EDITOR '
21
- assert_equal(true,
20
+ assert_equal(true,
22
21
  run_debugger(testname,
23
22
  "--script #{script} -- ./gcd.rb 3 5"))
24
23
  end
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # require 'rubygems'
5
4
  # require 'ruby-debug'; Debugger.start(:post_mortem => true)
6
5
 
7
6
  # Test the --emacs-basic option.
@@ -11,14 +10,14 @@ class TestEmacsBasic < Test::Unit::TestCase
11
10
  defined?(@@SRC_DIR)
12
11
 
13
12
  require File.join(@@SRC_DIR, 'helper.rb')
14
-
13
+
15
14
  include TestHelper
16
-
15
+
17
16
  def test_basic
18
17
  testname='emacs_basic'
19
- Dir.chdir(@@SRC_DIR) do
18
+ Dir.chdir(@@SRC_DIR) do
20
19
  script = File.join('data', testname + '.cmd')
21
- assert_equal(true,
20
+ assert_equal(true,
22
21
  run_debugger(testname,
23
22
  "--emacs-basic --script #{script} -- ./gcd.rb 3 5"))
24
23
  end
data/test/test-enable.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test enable and disable commands
@@ -15,9 +14,9 @@ class TestEnable < Test::Unit::TestCase
15
14
 
16
15
  def test_basic
17
16
  testname='enable'
18
- Dir.chdir(@@SRC_DIR) do
17
+ Dir.chdir(@@SRC_DIR) do
19
18
  script = File.join('data', testname + '.cmd')
20
- assert_equal(true,
19
+ assert_equal(true,
21
20
  run_debugger(testname,
22
21
  "--script #{script} -- ./gcd.rb 3 5"))
23
22
  end
data/test/test-finish.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # require 'rubygems'
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test finish command
@@ -23,11 +22,11 @@ class TestFinish < Test::Unit::TestCase
23
22
  # end
24
23
  # got_lines[32] = 'return a'
25
24
  # }
26
- Dir.chdir(@@src_dir) do
25
+ Dir.chdir(@@src_dir) do
27
26
  script = File.join('data', testname + '.cmd')
28
- assert_equal(true,
27
+ assert_equal(true,
29
28
  run_debugger(testname,
30
- "--script #{script} -- ./gcd.rb 3 5",
29
+ "--script #{script} -- ./gcd.rb 3 5",
31
30
  nil, nil))
32
31
  end
33
32
  end
data/test/test-frame.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # require 'rubygems'
5
4
  # require 'ruby-debug'; Debugger.start(:post_mortem => true)
6
5
 
7
6
  # Test frame commands
@@ -23,9 +22,9 @@ class TestFrame < Test::Unit::TestCase
23
22
  s.sub!(/in file ".*gcd.rb/, 'in file "gcd.rb')
24
23
  end
25
24
  }
26
- Dir.chdir(@@SRC_DIR) do
25
+ Dir.chdir(@@SRC_DIR) do
27
26
  script = File.join('data', testname + '.cmd')
28
- assert_equal(true,
27
+ assert_equal(true,
29
28
  run_debugger(testname,
30
29
  "--script #{script} -- ./gcd.rb 3 5",
31
30
  nil, filter))
data/test/test-help.rb CHANGED
@@ -1,17 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # begin require 'rubygems' rescue LoadError end
4
3
  # require 'ruby-debug' ; Debugger.start
5
4
 
6
5
  require 'test/unit'
7
- SRC_DIR = File.dirname(__FILE__) unless
6
+ SRC_DIR = File.dirname(__FILE__) unless
8
7
  defined?(SRC_DIR)
9
8
  %w(ext lib cli).each do |dir|
10
9
  $:.unshift File.join(SRC_DIR, '..', dir)
11
10
  end
12
11
  require 'ruby_debug'
12
+ require 'ruby-debug'
13
13
 
14
- require File.join(SRC_DIR, '..', 'cli', 'ruby-debug')
15
14
  $:.shift; $:.shift; $:.shift
16
15
 
17
16
  def cheap_diff(got_lines, correct_lines)
@@ -25,7 +24,7 @@ def cheap_diff(got_lines, correct_lines)
25
24
  return false
26
25
  end
27
26
  if correct_lines.size != got_lines.size
28
- puts("difference in number of lines: " +
27
+ puts("difference in number of lines: " +
29
28
  "#{correct_lines.size} vs. #{got_lines.size}")
30
29
  return false
31
30
  end
@@ -41,7 +40,7 @@ class TestHelp < Test::Unit::TestCase
41
40
  def test_basic
42
41
  testbase = 'help'
43
42
  op = StringIO.new('', 'w')
44
- Dir.chdir(SRC_DIR) do
43
+ Dir.chdir(SRC_DIR) do
45
44
  script = File.join('data', "#{testbase}.cmd")
46
45
  Debugger.const_set('Version', 'unit testing')
47
46
  Debugger.run_script(script, op)
@@ -51,10 +50,10 @@ class TestHelp < Test::Unit::TestCase
51
50
  result = cheap_diff(got_lines, correct_lines)
52
51
  unless result
53
52
  puts '-' * 80
54
- puts got_lines
53
+ puts got_lines
55
54
  puts '-' * 80
56
55
  end
57
- assert result
56
+ assert result
58
57
  end
59
58
  end
60
59
  end
data/test/test-hist.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test history commands
@@ -24,8 +23,8 @@ class TestHistory < Test::Unit::TestCase
24
23
  ENV['HOME']=@@SRC_DIR
25
24
  ENV['RDEBUG'] = nil
26
25
 
27
- debugger_commands = ['show commands',
28
- 'set history save on',
26
+ debugger_commands = ['show commands',
27
+ 'set history save on',
29
28
  'show history',
30
29
  'quit unconditionally']
31
30
  debugger_output = 'test-history.out'
@@ -42,13 +41,13 @@ class TestHistory < Test::Unit::TestCase
42
41
  # and check that it's reading that correctly.
43
42
  debug_pgm=File.join('..', 'rdbg.rb')
44
43
  debugged=File.join('gcd.rb')
45
- IO.popen("#{debug_pgm} #{debugged} 3 5 >#{debugger_output}", 'w') do
44
+ IO.popen("#{debug_pgm} #{debugged} 3 5 >#{debugger_output}", 'w') do
46
45
  |pipe|
47
46
  debugger_commands.each do |cmd|
48
47
  pipe.puts cmd
49
48
  end
50
49
  end
51
-
50
+
52
51
  # Compare output
53
52
  got_lines = File.read(@@FILE_HISTORY).split(/\n/)
54
53
  # FIXME: Disable for now.
@@ -64,5 +63,3 @@ class TestHistory < Test::Unit::TestCase
64
63
  end
65
64
  end
66
65
  end
67
-
68
-
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test simple thread commands
@@ -15,7 +14,7 @@ class TestInfoThread < Test::Unit::TestCase
15
14
 
16
15
  def test_basic
17
16
  testname='info-thread'
18
- Dir.chdir(@@SRC_DIR) do
17
+ Dir.chdir(@@SRC_DIR) do
19
18
  filter = Proc.new{|got_lines, correct_lines|
20
19
  [got_lines, correct_lines].each do |a|
21
20
  a.each do |s|
@@ -24,7 +23,7 @@ class TestInfoThread < Test::Unit::TestCase
24
23
  end
25
24
  }
26
25
  script = File.join('data', testname + '.cmd')
27
- assert_equal(true,
26
+ assert_equal(true,
28
27
  run_debugger(testname,
29
28
  "--script #{script} -- ./gcd.rb 3 5", nil, filter))
30
29
  end
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test info variables command
@@ -15,7 +14,7 @@ class TestInfoVar < Test::Unit::TestCase
15
14
 
16
15
  def test_info_variables
17
16
 
18
- Dir.chdir(@@SRC_DIR) do
17
+ Dir.chdir(@@SRC_DIR) do
19
18
 
20
19
  filter = Proc.new{|got_lines, correct_lines|
21
20
  [got_lines[13-1], correct_lines[13-1]].each do |s|
@@ -31,13 +30,13 @@ class TestInfoVar < Test::Unit::TestCase
31
30
 
32
31
  testname='info-var'
33
32
  script = File.join('data', testname + '.cmd')
34
- assert_equal(true,
33
+ assert_equal(true,
35
34
  run_debugger(testname,
36
35
  "--script #{script} -- ./info-var-bug.rb",
37
36
  nil, filter))
38
37
  testname='info-var-bug2'
39
38
  script = File.join('data', testname + '.cmd')
40
- assert_equal(true,
39
+ assert_equal(true,
41
40
  run_debugger(testname,
42
41
  "--script #{script} -- ./info-var-bug2.rb",
43
42
  nil))
data/test/test-info.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test info commands
@@ -16,9 +15,9 @@ class TestInfo < Test::Unit::TestCase
16
15
  # Test commands in info.rb
17
16
  def test_basic
18
17
  testname='info'
19
- Dir.chdir(@@SRC_DIR) do
18
+ Dir.chdir(@@SRC_DIR) do
20
19
  script = File.join('data', testname + '.cmd')
21
- assert_equal(true,
20
+ assert_equal(true,
22
21
  run_debugger(testname,
23
22
  "--script #{script} -- ./gcd.rb 3 5"))
24
23
  end
data/test/test-init.rb CHANGED
@@ -2,7 +2,6 @@
2
2
  require 'test/unit'
3
3
  require 'rbconfig'
4
4
 
5
- # begin require 'rubygems' rescue LoadError end
6
5
  # require 'ruby-debug'; Debugger.start
7
6
 
8
7
  # Test Debugger.init and setting up ruby-debug variables
@@ -13,7 +12,7 @@ class TestDebuggerInit < Test::Unit::TestCase
13
12
 
14
13
  def test_basic
15
14
  debugger_output = 'test-init.out'
16
- Dir.chdir(@@SRC_DIR) do
15
+ Dir.chdir(@@SRC_DIR) do
17
16
  old_emacs = ENV['EMACS']
18
17
  old_columns = ENV['COLUMNS']
19
18
  ENV['EMACS'] = nil
data/test/test-jump.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/unit'
3
3
 
4
- # begin require 'rubygems' rescue LoadError end
5
4
  # require 'ruby-debug'; Debugger.start
6
5
 
7
6
  # Test jump command
@@ -15,9 +14,9 @@ class TestJumpCommand < Test::Unit::TestCase
15
14
 
16
15
  def test_basic
17
16
  testname='jump'
18
- Dir.chdir(@@SRC_DIR) do
17
+ Dir.chdir(@@SRC_DIR) do
19
18
  script = File.join('data', testname + '.cmd')
20
- assert_equal(true,
19
+ assert_equal(true,
21
20
  run_debugger(testname,
22
21
  "--script #{script} -- ./#{testname}.rb"))
23
22
  end
@@ -25,9 +24,9 @@ class TestJumpCommand < Test::Unit::TestCase
25
24
 
26
25
  def test_basic_2
27
26
  testname='jump2'
28
- Dir.chdir(@@SRC_DIR) do
27
+ Dir.chdir(@@SRC_DIR) do
29
28
  script = File.join('data', testname + '.cmd')
30
- assert_equal(true,
29
+ assert_equal(true,
31
30
  run_debugger(testname,
32
31
  "--script #{script} -- ./#{testname}.rb"))
33
32
  end