aboutsummaryrefslogtreecommitdiffstats
path: root/test/dtrace/test_hash_create.rb
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-11 09:49:26 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-11 09:49:26 +0000
commit349f6a3275abb0b59d35df44c3d786a4af58449e (patch)
treebd51a652b07344d9784206529eef0cde752aac52 /test/dtrace/test_hash_create.rb
parent785ace12f903cfae848ea38d7b8a0cb3439379f3 (diff)
downloadruby-349f6a3275abb0b59d35df44c3d786a4af58449e.tar.gz
test/dtrace: improve diagnostics
These will help us track down test failures more easily (on FreeBSD 11.2) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dtrace/test_hash_create.rb')
-rw-r--r--test/dtrace/test_hash_create.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dtrace/test_hash_create.rb b/test/dtrace/test_hash_create.rb
index 83a4d0062c..603ee21872 100644
--- a/test/dtrace/test_hash_create.rb
+++ b/test/dtrace/test_hash_create.rb
@@ -22,11 +22,11 @@ module DTrace
end
def test_hash_lit_elements
- trap_probe(probe, '{ :foo => :bar }') { |_,rbfile,saw|
- saw = saw.map(&:split).find_all { |num, file, line|
+ trap_probe(probe, '{ :foo => :bar }') { |_,rbfile,orig|
+ saw = orig.map(&:split).find_all { |num, file, line|
file == rbfile && num == '2'
}
- assert_operator saw.length, :>, 0
+ assert_operator saw.length, :>, 0, orig
}
end