summaryrefslogtreecommitdiff
path: root/bootstraptest/test_knownbug.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-27 01:16:26 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-27 01:16:26 +0000
commit2b14633bf7a15d14541fb3e5d58829bfb8f794c5 (patch)
treeac0dd8d62c4f36cbdebfbe186ce53108e60bd62e /bootstraptest/test_knownbug.rb
parent97be468ebb12067222ca1262bb947786252e281f (diff)
add a test for [ruby-dev:34492].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_knownbug.rb')
-rw-r--r--bootstraptest/test_knownbug.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 87efa9f..cc42219 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -155,3 +155,20 @@ assert_equal 'ok', %q{
:ng
end
}, "[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]'