1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2014-11-11 15:28:17 +00:00
parent 801c8ab026
commit ae831861be
5 changed files with 14 additions and 4 deletions

View file

@ -1,3 +1,13 @@
Wed Nov 12 00:26:37 2014 Tanaka Akira <akr@fsij.org>
* 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 <akr@fsij.org>
* test/fileutils/test_fileutils.rb: Use assert_join_threads.

View file

@ -447,7 +447,7 @@ if defined? DBM
n+=1
true
}
rescue
rescue RuntimeError
end
assert_equal(51, n)
check_size(49, @dbm)

View file

@ -498,7 +498,7 @@ if defined? GDBM
n+=1
true
}
rescue
rescue RuntimeError
end
assert_equal(51, n)
check_size(49, @gdbm)

View file

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

View file

@ -399,7 +399,7 @@ class TestSDBM < Test::Unit::TestCase
n+=1
true
}
rescue
rescue RuntimeError
end
assert_equal(51, n)
check_size(49, @sdbm)