mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
pass DRb info to sub thread
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cb375567f6
commit
963c7a338d
3 changed files with 16 additions and 3 deletions
|
@ -241,12 +241,16 @@ class TestDRbEval < Test::Unit::TestCase
|
|||
|
||||
remote_class = four.remote_class
|
||||
|
||||
assert_equal(1, remote_class.class_eval('1'))
|
||||
|
||||
assert_equal(1, remote_class.module_eval('1'))
|
||||
|
||||
assert_raises(SecurityError) do
|
||||
remote_class.class_eval('ENV.inspect')
|
||||
remote_class.class_eval('ENV = {}')
|
||||
end
|
||||
|
||||
assert_raises(SecurityError) do
|
||||
remote_class.module_eval('ENV.inspect')
|
||||
remote_class.module_eval('ENV = {}')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue