summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 06:57:52 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 06:57:52 +0000
commit0ef8ed93bcd7d0e073e0e2f28ada279471155100 (patch)
tree451d2ba690e9e0667cb48df13713a7155aa1a9a0 /bootstraptest
parented9690bba519982b694d03cdce536a3c5bcaf774 (diff)
add a test for [ruby-dev:32048].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_knownbug.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index b251734cae..c0cd0e9f31 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -10,3 +10,19 @@ assert_equal 'ok', %q{
}
s == "a\xFF" ? :ok : :ng
}, '[ruby-core:14288]'
+
+assert_equal 'ok', %q{
+ open("require-lock-test.rb", "w") {|f|
+ f.puts "sleep 0.1"
+ f.puts "module M"
+ f.puts "end"
+ }
+ $:.unshift Dir.pwd
+ vs = (1..2).map {|i|
+ Thread.start {
+ require "require-lock-test"
+ M
+ }
+ }.map {|t| t.value }
+ vs[0] == M && vs[1] == M ? :ok : :ng
+}, '[ruby-dev:32048]'