1
0
Fork 0
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:
Nobuyoshi Nakada 2019-06-30 21:21:06 +09:00
parent 1eca2f3ca9
commit 8640153e59
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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