1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/bootstraptest/test_knownbug.rb
akr c534670da1 move the test for [ruby-core:14288].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 15:06:14 +00:00

20 lines
426 B
Ruby

#
# This test file concludes tests which point out known bugs.
# So all tests will cause failure.
#
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]'