aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-04 04:10:00 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-04 04:10:00 +0000
commit0394cfa1cdf4f87f6c8ade0de4f11a415ac7d641 (patch)
treee1b3ced211f81b2da0c48161419dc3dd25b46731 /test
parente8bf6358cc8d0742b033f96fe7d75c829c8959ff (diff)
downloadruby-0394cfa1cdf4f87f6c8ade0de4f11a415ac7d641.tar.gz
Revert r52872 "string.c: should not taint fstring"
This reverts commit b887c7c20ab81b50ed7cb8c7db3218c443985d6b. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_object.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index 27f3bd18ce..a3c71d605c 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -755,15 +755,6 @@ class TestObject < Test::Unit::TestCase
end
EOS
assert_match(/\bToS\u{3042}:/, x)
-
- name = "X".freeze
- x = Object.new.taint
- class<<x;self;end.class_eval {define_method(:to_s) {name}}
- assert_same(name, x.to_s)
- assert_not_predicate(name, :tainted?)
- assert_raise(RuntimeError) {name.taint}
- assert_equal("X", [x].join(""))
- assert_not_predicate(name, :tainted?)
end
def test_inspect