summaryrefslogtreecommitdiff
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r--test/ruby/test_file.rb6
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