1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/dtrace/test_array_create.rb: require line number

Nowadays we create empty arrays in the parse/compile
phase which gave us lineno==0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2018-06-05 21:19:36 +00:00
parent 2acd50ed42
commit c97952dd0f

View file

@ -26,7 +26,7 @@ module DTrace
def probe type = 'array' def probe type = 'array'
<<-eoprobe <<-eoprobe
ruby$target:::#{type}-create ruby$target:::#{type}-create
/arg1/ /arg1 && arg2/
{ {
printf("%d %s %d\\n", arg0, copyinstr(arg1), arg2); printf("%d %s %d\\n", arg0, copyinstr(arg1), arg2);
} }