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:
parent
84bade6aa7
commit
9178645dbc
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue