mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added test for require-return hook
This commit is contained in:
parent
1eca2f3ca9
commit
8640153e59
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,12 @@ ruby$target:::require-return
|
|||
printf("%s\\n", copyinstr(arg0));
|
||||
}
|
||||
eoprobe
|
||||
trap_probe(probe, ruby_program) { |d_file, rb_file, saw|
|
||||
required = saw.map { |s| s.split }.find_all do |(required, _)|
|
||||
required == 'dtrace/dummy'
|
||||
end
|
||||
assert_equal 10, required.length
|
||||
}
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue