add a test for [ruby-dev:34492].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
97be468ebb
commit
2b14633bf7
@ -155,3 +155,20 @@ assert_equal 'ok', %q{
|
|||||||
:ng
|
:ng
|
||||||
end
|
end
|
||||||
}, "[ruby-dev:34236]"
|
}, "[ruby-dev:34236]"
|
||||||
|
|
||||||
|
assert_equal 'ok', %q{
|
||||||
|
def m
|
||||||
|
t = Thread.new { while true do // =~ "" end }
|
||||||
|
sleep 0.1
|
||||||
|
10.times {
|
||||||
|
if /((ab)*(ab)*)*(b)/ =~ "ab"*7
|
||||||
|
return :ng if !$4
|
||||||
|
return :ng if $~.size != 5
|
||||||
|
end
|
||||||
|
}
|
||||||
|
:ok
|
||||||
|
ensure
|
||||||
|
Thread.kill t
|
||||||
|
end
|
||||||
|
m
|
||||||
|
}, '[ruby-dev:34492]'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user