From ae831861bed60da0acbbaa3144d15a552f9183bf Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 11 Nov 2014 15:28:17 +0000 Subject: [PATCH] * test/ruby/test_object.rb: Specify an exception class for rescue clause. * test/dbm/test_dbm.rb: Ditto. * test/gdbm/test_gdbm.rb: Ditto. * test/sdbm/test_sdbm.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++++++ test/dbm/test_dbm.rb | 2 +- test/gdbm/test_gdbm.rb | 2 +- test/ruby/test_object.rb | 2 +- test/sdbm/test_sdbm.rb | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e681955315..10036a4b41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Wed Nov 12 00:26:37 2014 Tanaka Akira + + * test/ruby/test_object.rb: Specify an exception class for rescue clause. + + * test/dbm/test_dbm.rb: Ditto. + + * test/gdbm/test_gdbm.rb: Ditto. + + * test/sdbm/test_sdbm.rb: Ditto. + Tue Nov 11 23:43:51 2014 Tanaka Akira * test/fileutils/test_fileutils.rb: Use assert_join_threads. diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb index 5d59c92fcd..c783b497d8 100644 --- a/test/dbm/test_dbm.rb +++ b/test/dbm/test_dbm.rb @@ -447,7 +447,7 @@ if defined? DBM n+=1 true } - rescue + rescue RuntimeError end assert_equal(51, n) check_size(49, @dbm) diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index ae6985a5b4..b707118162 100644 --- a/test/gdbm/test_gdbm.rb +++ b/test/gdbm/test_gdbm.rb @@ -498,7 +498,7 @@ if defined? GDBM n+=1 true } - rescue + rescue RuntimeError end assert_equal(51, n) check_size(49, @gdbm) diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index bbc04b0e4a..a0f245a453 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -591,7 +591,7 @@ class TestObject < Test::Unit::TestCase end begin nil.public_send(o) { x = :ng } - rescue + rescue TypeError end assert_equal(:ok, x) end diff --git a/test/sdbm/test_sdbm.rb b/test/sdbm/test_sdbm.rb index 9068c4cd8e..7a42e78e98 100644 --- a/test/sdbm/test_sdbm.rb +++ b/test/sdbm/test_sdbm.rb @@ -399,7 +399,7 @@ class TestSDBM < Test::Unit::TestCase n+=1 true } - rescue + rescue RuntimeError end assert_equal(51, n) check_size(49, @sdbm)