diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-29 01:30:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-29 01:30:43 +0900 |
commit | d12d53a6c8d959687d4ecec54501f3b13a806941 (patch) | |
tree | 89b44db52cd8c3aa4e7fe70e0095b85a530abf94 /test/ruby | |
parent | 2bb217bfb7703ba923d0e1d69b2f2dddb66cc7d6 (diff) |
Adjust caller's line number, expect the next line as here-doc
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_optimization.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_optimization.rb b/test/ruby/test_optimization.rb index cb65b3a36b..d93afff500 100644 --- a/test/ruby/test_optimization.rb +++ b/test/ruby/test_optimization.rb @@ -272,7 +272,7 @@ class TestRubyOptimization < Test::Unit::TestCase unless file loc, = caller_locations(1, 1) file = loc.path - line ||= loc.lineno + line ||= loc.lineno + 1 end RubyVM::InstructionSequence.new("proc {|_|_.class_eval {#{src}}}", file, (path || file), line, |