* 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:
parent
801c8ab026
commit
ae831861be
10
ChangeLog
10
ChangeLog
@ -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>
|
Tue Nov 11 23:43:51 2014 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* test/fileutils/test_fileutils.rb: Use assert_join_threads.
|
* test/fileutils/test_fileutils.rb: Use assert_join_threads.
|
||||||
|
@ -447,7 +447,7 @@ if defined? DBM
|
|||||||
n+=1
|
n+=1
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
rescue
|
rescue RuntimeError
|
||||||
end
|
end
|
||||||
assert_equal(51, n)
|
assert_equal(51, n)
|
||||||
check_size(49, @dbm)
|
check_size(49, @dbm)
|
||||||
|
@ -498,7 +498,7 @@ if defined? GDBM
|
|||||||
n+=1
|
n+=1
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
rescue
|
rescue RuntimeError
|
||||||
end
|
end
|
||||||
assert_equal(51, n)
|
assert_equal(51, n)
|
||||||
check_size(49, @gdbm)
|
check_size(49, @gdbm)
|
||||||
|
@ -591,7 +591,7 @@ class TestObject < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
begin
|
begin
|
||||||
nil.public_send(o) { x = :ng }
|
nil.public_send(o) { x = :ng }
|
||||||
rescue
|
rescue TypeError
|
||||||
end
|
end
|
||||||
assert_equal(:ok, x)
|
assert_equal(:ok, x)
|
||||||
end
|
end
|
||||||
|
@ -399,7 +399,7 @@ class TestSDBM < Test::Unit::TestCase
|
|||||||
n+=1
|
n+=1
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
rescue
|
rescue RuntimeError
|
||||||
end
|
end
|
||||||
assert_equal(51, n)
|
assert_equal(51, n)
|
||||||
check_size(49, @sdbm)
|
check_size(49, @sdbm)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user