Permalink
Browse files

Fixes test failures reported in #80.

You might want to merge this. It should work everywhere unless the user running
the tests has an insanely large cwd. I think it's better than the hack I linked
in issue #80.
  • Loading branch information...
1 parent 6f6df01 commit 1bfe481c71ed3957c9455e66b778f0de0fa2c64f @deivid-rodriguez deivid-rodriguez committed May 24, 2013
Showing with 4 additions and 5 deletions.
  1. +3 −5 test/frame_test.rb
  2. +1 −0 test/test_helper.rb
View
@@ -36,7 +36,7 @@
it "must print current stack frame when without arguments" do
enter 'break 25', 'cont', 'up', 'frame'
debug_file('frame')
- check_output_includes "#0 A.d(e#String)\n at line #{fullpath('frame')}:25"
+ check_output_includes "#0 A.d(e#String) at line #{fullpath('frame')}:25"
end
it "must set frame to the first one" do
@@ -73,8 +73,7 @@ def short_path(fullpath)
enter 'set fullpath', 'break 25', 'cont', 'where'
debug_file('frame')
check_output_includes(Regexp.new(
- "--> #0 A.d\\(e#String\\)\\n" +
- " at line #{fullpath('frame')}:25\\n" +
+ "--> #0 A.d\\(e#String\\) at line #{fullpath('frame')}:25\\n" +
" #1 A.c at line #{fullpath('frame')}:21\\n",
Regexp::MULTILINE))
end
@@ -96,8 +95,7 @@ def short_path(fullpath)
enter 'set callstyle last', 'break 25', 'cont', 'where'
debug_file('frame')
check_output_includes(Regexp.new(
- "--> #0 A.d\\(e#String\\)\\n" +
- " at line #{fullpath('frame')}:25\\n" +
+ "--> #0 A.d\\(e#String\\) at line #{fullpath('frame')}:25\\n" +
" #1 A.c at line #{fullpath('frame')}:21\\n" +
" #2 A.b at line #{fullpath('frame')}:17\\n" +
" #3 A.a at line #{fullpath('frame')}:14\\n",
View
@@ -7,3 +7,4 @@
$debugger_test_dir = File.expand_path("..", __FILE__)
Debugger::Command.settings[:debuggertesting] = true
+Debugger::Command.settings[:width] = 180

0 comments on commit 1bfe481

Please sign in to comment.