summaryrefslogtreecommitdiff
path: root/bootstraptest/test_knownbug.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-26 22:40:44 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-26 22:40:44 +0000
commit654cdfb90ba127bcf453d3d45dc7a3f4c99a8c05 (patch)
tree22f159b6253602fa0ff9ac5705783806ab909c39 /bootstraptest/test_knownbug.rb
parent19d8793ef4df2183a1187eefae1c71009634e92b (diff)
* bootstraptest/runner.rb (assert_finish): new method.
* bootstraptest/test_knownbug.rb: add test for [ruby-dev:31866] using assert_finish. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_knownbug.rb')
-rw-r--r--bootstraptest/test_knownbug.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 39dc6a9b8b..a5088ac234 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -2,3 +2,13 @@
# This test file concludes tests which point out known bugs.
# So all tests will cause failure.
#
+
+assert_finish 1, %q{
+ r, w = IO.pipe
+ t1 = Thread.new { r.sysread(10) }
+ t2 = Thread.new { r.sysread(10) }
+ sleep 0.1
+ w.write "a"
+ sleep 0.1
+ w.write "a"
+}, '[ruby-dev:31866]'