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

Thread.current.report_on_exception = false

* test/win32ole/test_win32ole.rb: set report_on_exception = false in threads
  which are expected to be throw some exceptions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2017-12-14 06:38:47 +00:00
parent 84bade6aa7
commit 9178645dbc

View file

@ -181,6 +181,7 @@ if defined?(WIN32OLE)
$SAFE = 1
svr = "Scripting.Dictionary"
svr.taint
Thread.current.report_on_exception = false
WIN32OLE.new(svr)
}
exc = assert_raise(SecurityError) {
@ -195,6 +196,7 @@ if defined?(WIN32OLE)
svr = "Scripting.Dictionary"
host = "localhost"
host.taint
Thread.current.report_on_exception = false
WIN32OLE.new(svr, host)
}
exc = assert_raise(SecurityError) {
@ -233,6 +235,7 @@ if defined?(WIN32OLE)
$SAFE = 1
svr = "winmgmts:"
svr.taint
Thread.current.report_on_exception = false
WIN32OLE.connect(svr)
}
exc = assert_raise(SecurityError) {