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:
parent
2acd50ed42
commit
c97952dd0f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue