Multiple RubySpec failures for Kernel's load() and require()
------------------------------------------------------------
Key: JRUBY-4543
URL: http://jira.codehaus.org/browse/JRUBY-4543
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, RubySpec
Affects Versions: JRuby 1.4
Reporter: Vladimir Sizikov
These are new specs, originated from rbx folks recently.
{noformat}
jruby -S mspec ci core\kernel\load_spec.rb core\kernel\require_spec.rb
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-02-05 1214de1) (Java
HotSpot(TM) Client VM 1.6.0_18) [x86-java]
...................F.............FE..................F.............
FE...................F.......................E..................
F.......................E
1)
Kernel#load (path resolution) does not resolve a ./ relative path against
$LOAD_PATH entries FAILED
Expected LoadError but no exception was raised
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/require.rb:177
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:6
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
2)
Kernel#load sets the enclosing scope to an anonymous module if passed true for
'wrap' FAILED
Expected true to be false
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/load.rb:72
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:22
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
3)
Kernel#load (shell expansion) expands a tilde to the HOME environment variable
as the path to load ERROR
LoadError: no such file to load -- ~/load_fixture
D:/work/jruby-dev/rubyspec.git/fixtures/common.rb:7:in `require'
D:/work/jruby-dev/rubyspec.git/fixtures/common.rb:7:in `require'
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/load.rb:87
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:22
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
4)
Kernel.load (path resolution) does not resolve a ./ relative path against
$LOAD_PATH entries FAILED
Expected LoadError but no exception was raised
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/require.rb:177
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:26
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
5)
Kernel#load sets the enclosing scope to an anonymous module if passed true for
'wrap' FAILED
Expected true to be false
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/load.rb:72
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:38
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
6)
Kernel#load (shell expansion) expands a tilde to the HOME environment variable
as the path to load ERROR
LoadError: no such file to load -- ~/load_fixture
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/load.rb:87:in `require'
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/load.rb:87
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:38
D:/work/jruby-dev/rubyspec.git/core/kernel/load_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
7)
Kernel#require (path resolution) does not resolve a ./ relative path against
$LOAD_PATH entries FAILED
Expected LoadError but no exception was raised
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/require.rb:177
D:/work/jruby-dev/rubyspec.git/core/kernel/require_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/kernel/require_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
8)
Kernel#require (shell expansion) does not perform tilde expansion before
storing paths in $LOADED_FEATURES ERROR
LoadError: no such file to load -- ~/load_fixture
D:/work/jruby-dev/rubyspec.git/fixtures/common.rb:7:in `require'
D:/work/jruby-dev/rubyspec.git/fixtures/common.rb:7:in `require'
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/require.rb:469
D:/work/jruby-dev/rubyspec.git/core/kernel/require_spec.rb:5
D:/work/jruby-dev/rubyspec.git/core/kernel/require_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
9)
Kernel.require (path resolution) does not resolve a ./ relative path against
$LOAD_PATH entries FAILED
Expected LoadError but no exception was raised
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/require.rb:177
D:/work/jruby-dev/rubyspec.git/core/kernel/require_spec.rb:24
D:/work/jruby-dev/rubyspec.git/core/kernel/require_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
10)
Kernel.require (shell expansion) does not perform tilde expansion before
storing paths in $LOADED_FEATURES ERROR
LoadError: no such file to load -- ~/load_fixture
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/require.rb:469:in `require'
D:/work/jruby-dev/rubyspec.git/core/kernel/shared/require.rb:469
D:/work/jruby-dev/rubyspec.git/core/kernel/require_spec.rb:24
D:/work/jruby-dev/rubyspec.git/core/kernel/require_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
Finished in 0.556000 seconds
2 files, 156 examples, 290 expectations, 6 failures, 4 errors
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email