mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* load.c (rb_feature_p): returns loading path name too.
* load.c (search_required): returns path too if feature is being loaded. [ruby-dev:32048] [TODO: refactoring] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e01c045a8b
commit
68a66351a7
3 changed files with 22 additions and 16 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Mon Dec 24 16:53:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* load.c (rb_feature_p): returns loading path name too.
|
||||||
|
|
||||||
|
* load.c (search_required): returns path too if feature is being
|
||||||
|
loaded. [ruby-dev:32048] [TODO: refactoring]
|
||||||
|
|
||||||
Mon Dec 24 16:29:12 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
Mon Dec 24 16:29:12 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
* sample/openssl: reviewed and remove dependency on getopts.rb.
|
* sample/openssl: reviewed and remove dependency on getopts.rb.
|
||||||
|
|
|
@ -2,19 +2,3 @@
|
||||||
# This test file concludes tests which point out known bugs.
|
# This test file concludes tests which point out known bugs.
|
||||||
# So all tests will cause failure.
|
# 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]'
|
|
||||||
|
|
15
bootstraptest/test_load.rb
Normal file
15
bootstraptest/test_load.rb
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
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]'
|
Loading…
Add table
Add a link
Reference in a new issue