diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-17 05:29:51 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-17 05:29:51 +0000 |
commit | bbf440c90b036c733729b1a5c996978ac2adaa9d (patch) | |
tree | 63a68dca7be09eb7be8a1d5e9c58bb5726688ee9 /test/ruby/test_file.rb | |
parent | 3759dfa23e6d6106d93a5c9bf845b0fc620a2512 (diff) |
* include/ruby/ruby.h: $SAFE=3 is now obsolete.
* ext/socket/init.c, ext/socket/socket.c, ext/socket/tcpsocket.c
ext/socket/udpsocket.c, gc.c, object.c, re.c, safe.c: removed code
for $SAFE=3
* bootstraptest/test_method.rb, test/erb/test_erb.rb, test/ruby/test_dir.rb
test/ruby/test_file.rb, test/ruby/test_method.rb, test/ruby/test_regexp.rb
test/ruby/test_thread.rb: remove tests for $SAFE=3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r-- | test/ruby/test_file.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index a700527a4e..8335b78760 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -409,12 +409,6 @@ class TestFile < Test::Unit::TestCase (0..1).each do |level| assert_nothing_raised(SecurityError, bug5374) {in_safe[level]} end - def (s = Object.new).to_path; "".taint; end - m = "\u{691c 67fb}" - (c = Class.new(File)).singleton_class.class_eval {alias_method m, :stat} - assert_raise_with_message(SecurityError, /#{m}/) { - proc {$SAFE = 3; c.__send__(m, s)}.call - } end if /(bcc|ms|cyg)win|mingw|emx/ =~ RUBY_PLATFORM |