repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git]
/
bootstraptest
/
test_load.rb
blob
18e8cc06a42a114e457cf9590816d79286c14e69
1
assert_equal 'ok', %q{
2
open("require-lock-test.rb", "w") {|f|
3
f.puts "sleep 0.1"
4
f.puts "module M"
5
f.puts "end"
6
}
7
$:.unshift Dir.pwd
8
vs = (1..2).map {|i|
9
Thread.start {
10
require "require-lock-test"
11
M
12
}
13
}.map {|t| t.value }
14
vs[0] == M && vs[1] == M ? :ok : :ng
15
}, '[ruby-dev:32048]'