mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update unittest, port from v1.8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
482abfc851
commit
8fd62dccb2
3 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Feb 17 00:31:21 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* test/drb/test_drb.rb, ut_safe1.rb: port from 1.8
|
||||
|
||||
Wed Feb 16 23:54:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_thread_start_1): outer block variables wasn't linked to
|
||||
|
|
|
@ -233,12 +233,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
|
||||
|
|
|
@ -8,7 +8,6 @@ if __FILE__ == $0
|
|||
it
|
||||
end
|
||||
|
||||
$SAFE = 1
|
||||
DRb.start_service('druby://localhost:0', [1, 2, 'III', 4, "five", 6],
|
||||
{:safe_level => 1})
|
||||
es = DRb::ExtServ.new(ARGV.shift, ARGV.shift)
|
||||
|
|
Loading…
Reference in a new issue