* test/ruby/test_autoload.rb: remove temporary directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8fc86b0d34
commit
cb728a297b
@ -1,3 +1,7 @@
|
|||||||
|
Tue Jun 14 19:50:49 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* test/ruby/test_autoload.rb: remove temporary directory.
|
||||||
|
|
||||||
Tue Jun 14 11:05:03 2011 Narihiro Nakamura <narihiro@netlab.jp>
|
Tue Jun 14 11:05:03 2011 Narihiro Nakamura <narihiro@netlab.jp>
|
||||||
|
|
||||||
* gc.c (rb_gc_set_params): call initial_expand_heap if
|
* gc.c (rb_gc_set_params): call initial_expand_heap if
|
||||||
|
@ -39,17 +39,18 @@ p Foo::Bar
|
|||||||
bug4565 = '[ruby-core:35679]'
|
bug4565 = '[ruby-core:35679]'
|
||||||
|
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
tmpdir = Dir.mktmpdir('autoload')
|
Dir.mktmpdir('autoload') {|tmpdir|
|
||||||
tmpfile = tmpdir + '/foo.rb'
|
tmpfile = tmpdir + '/foo.rb'
|
||||||
a = Module.new do
|
a = Module.new do
|
||||||
autoload :X, tmpfile
|
autoload :X, tmpfile
|
||||||
end
|
end
|
||||||
b = Module.new do
|
b = Module.new do
|
||||||
include a
|
include a
|
||||||
end
|
end
|
||||||
assert_equal(true, a.const_defined?(:X))
|
assert_equal(true, a.const_defined?(:X))
|
||||||
assert_equal(true, b.const_defined?(:X))
|
assert_equal(true, b.const_defined?(:X))
|
||||||
assert_equal(tmpfile, a.autoload?(:X), bug4565)
|
assert_equal(tmpfile, a.autoload?(:X), bug4565)
|
||||||
assert_equal(tmpfile, b.autoload?(:X), bug4565)
|
assert_equal(tmpfile, b.autoload?(:X), bug4565)
|
||||||
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user