summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-19 01:59:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-19 01:59:38 +0000
commit13d6ebd3de8627949928cad29a8f0cbd37b29ce5 (patch)
tree14061f07be9b7b0c08a526b3522a4ae427e4d169 /test/ruby
parent299bbc825877893cdc4ab656f37192cadcf413fe (diff)
downloadruby-13d6ebd3de8627949928cad29a8f0cbd37b29ce5.tar.gz
ruby-13d6ebd3de8627949928cad29a8f0cbd37b29ce5.tar.xz
ruby-13d6ebd3de8627949928cad29a8f0cbd37b29ce5.zip
* iseq.c (prepare_iseq_build, rb_iseq_build_for_ruby2cext):
untrust mark array. [ruby-core:26137] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_regexp.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index 541804ade..4f8a1a6c7 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -472,6 +472,10 @@ class TestRegexp < Test::Unit::TestCase
/foo/.match("foo")
end.value
assert(m.tainted?)
+ assert_nothing_raised('[ruby-core:26137]') {
+ m = proc {$SAFE = 4; /#{}/o}.call
+ }
+ assert(m.tainted?)
end
def check(re, ss, fs = [])