Failures in core\module\autoload_spec.rb


#1

I am getting these failures when I run irtests.bat, but now if I run
“mspec core\module\autoload”. Has anyone ever run into this?

Module#autoload uses dup copies for autoloaded constants FAILED
Expected NameError but no exception was raised
expectations.rb:9:in fail_with' should.rb:2:inshould’
autoload_spec.rb:172
bug.rb:15:in ruby_bug' autoload_spec.rb:160 classes.rb:320:inprotect_loaded_features’
autoload_spec.rb:159
:0:in instance_eval' mspec.rb:64:inprotect’
context.rb:131:in protect' c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:inb__0’

:0:in each' c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:inEach’
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
TrueForItems' :0:inall?’
context.rb:129:in protect' context.rb:151:inprocess’
:0:in each' context.rb:143:inprocess’
mspec.rb:28:in describe' object.rb:10:indescribe’
autoload_spec.rb:0
:0:in load' mspec.rb:54:infiles’
:0:in instance_eval' mspec.rb:64:inprotect’
mspec.rb:48:in files' :0:ineach’
mspec.rb:44:in files' mspec.rb:38:inprocess’
mspec-ci.rb:58:in run' script.rb:189:inmain’
mspec-ci:0

Module#autoload autoloaded constants are removed on the first access
FAILED
Expected NameError but no exception was raised
expectations.rb:9:in fail_with' should.rb:2:inshould’
autoload_spec.rb:180
classes.rb:320:in protect_loaded_features' autoload_spec.rb:179 :0:ininstance_eval’
mspec.rb:64:in protect' context.rb:131:inprotect’
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:in
`b__0’

:0:in each' c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:inEach’
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
TrueForItems' :0:inall?’
context.rb:129:in protect' context.rb:151:inprocess’
:0:in each' context.rb:143:inprocess’
mspec.rb:28:in describe' object.rb:10:indescribe’
autoload_spec.rb:0
:0:in load' mspec.rb:54:infiles’
:0:in instance_eval' mspec.rb:64:inprotect’
mspec.rb:48:in files' :0:ineach’
mspec.rb:44:in files' mspec.rb:38:inprocess’
mspec-ci.rb:58:in run' script.rb:189:inmain’
mspec-ci:0

Thanks,
Shri


#2

I don’t recall ever running into this, but I’m fixing some autoload
issues right now, so I’ll take a look.

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Shri B.
Sent: Friday, April 17, 2009 3:54 PM
To: removed_email_address@domain.invalid
Subject: [Ironruby-core] Failures in core\module\autoload_spec.rb

I am getting these failures when I run irtests.bat, but now if I run
“mspec core\module\autoload”. Has anyone ever run into this?

Module#autoload uses dup copies for autoloaded constants FAILED
Expected NameError but no exception was raised
expectations.rb:9:in fail_with' should.rb:2:inshould’
autoload_spec.rb:172
bug.rb:15:in ruby_bug' autoload_spec.rb:160 classes.rb:320:inprotect_loaded_features’
autoload_spec.rb:159
:0:in instance_eval' mspec.rb:64:inprotect’
context.rb:131:in protect' c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:inb__0’

:0:in each' c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:inEach’
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
TrueForItems' :0:inall?’
context.rb:129:in protect' context.rb:151:inprocess’
:0:in each' context.rb:143:inprocess’
mspec.rb:28:in describe' object.rb:10:indescribe’
autoload_spec.rb:0
:0:in load' mspec.rb:54:infiles’
:0:in instance_eval' mspec.rb:64:inprotect’
mspec.rb:48:in files' :0:ineach’
mspec.rb:44:in files' mspec.rb:38:inprocess’
mspec-ci.rb:58:in run' script.rb:189:inmain’
mspec-ci:0

Module#autoload autoloaded constants are removed on the first access
FAILED
Expected NameError but no exception was raised
expectations.rb:9:in fail_with' should.rb:2:inshould’
autoload_spec.rb:180
classes.rb:320:in protect_loaded_features' autoload_spec.rb:179 :0:ininstance_eval’
mspec.rb:64:in protect' context.rb:131:inprotect’
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:in
`b__0’

:0:in each' c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:inEach’
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
TrueForItems' :0:inall?’
context.rb:129:in protect' context.rb:151:inprocess’
:0:in each' context.rb:143:inprocess’
mspec.rb:28:in describe' object.rb:10:indescribe’
autoload_spec.rb:0
:0:in load' mspec.rb:54:infiles’
:0:in instance_eval' mspec.rb:64:inprotect’
mspec.rb:48:in files' :0:ineach’
mspec.rb:44:in files' mspec.rb:38:inprocess’
mspec-ci.rb:58:in run' script.rb:189:inmain’
mspec-ci:0

Thanks,
Shri


#3

Seems to be OK for me, let me know if you still have issues.

c:\dev\ironruby>mspec core/module/autoload
IronRuby 0.3 0.3.0.0 on .NET 2.0.0.0

Finished in 2.361236 seconds

1 file, 16 examples, 30 expectations, 0 failures, 0 errors

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Jimmy
Schementi
Sent: Friday, April 17, 2009 4:13 PM
To: removed_email_address@domain.invalid
Subject: Re: [Ironruby-core] Failures in core\module\autoload_spec.rb

I don’t recall ever running into this, but I’m fixing some autoload
issues right now, so I’ll take a look.

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Shri B.
Sent: Friday, April 17, 2009 3:54 PM
To: removed_email_address@domain.invalid
Subject: [Ironruby-core] Failures in core\module\autoload_spec.rb

I am getting these failures when I run irtests.bat, but now if I run
“mspec core\module\autoload”. Has anyone ever run into this?

Module#autoload uses dup copies for autoloaded constants FAILED
Expected NameError but no exception was raised
expectations.rb:9:in fail_with' should.rb:2:inshould’
autoload_spec.rb:172
bug.rb:15:in ruby_bug' autoload_spec.rb:160 classes.rb:320:inprotect_loaded_features’
autoload_spec.rb:159
:0:in instance_eval' mspec.rb:64:inprotect’
context.rb:131:in protect' c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:inb__0’

:0:in each' c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:inEach’
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
TrueForItems' :0:inall?’
context.rb:129:in protect' context.rb:151:inprocess’
:0:in each' context.rb:143:inprocess’
mspec.rb:28:in describe' object.rb:10:indescribe’
autoload_spec.rb:0
:0:in load' mspec.rb:54:infiles’
:0:in instance_eval' mspec.rb:64:inprotect’
mspec.rb:48:in files' :0:ineach’
mspec.rb:44:in files' mspec.rb:38:inprocess’
mspec-ci.rb:58:in run' script.rb:189:inmain’
mspec-ci:0

Module#autoload autoloaded constants are removed on the first access
FAILED
Expected NameError but no exception was raised
expectations.rb:9:in fail_with' should.rb:2:inshould’
autoload_spec.rb:180
classes.rb:320:in protect_loaded_features' autoload_spec.rb:179 :0:ininstance_eval’
mspec.rb:64:in protect' context.rb:131:inprotect’
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:in
`b__0’

:0:in each' c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:inEach’
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
TrueForItems' :0:inall?’
context.rb:129:in protect' context.rb:151:inprocess’
:0:in each' context.rb:143:inprocess’
mspec.rb:28:in describe' object.rb:10:indescribe’
autoload_spec.rb:0
:0:in load' mspec.rb:54:infiles’
:0:in instance_eval' mspec.rb:64:inprotect’
mspec.rb:48:in files' :0:ineach’
mspec.rb:44:in files' mspec.rb:38:inprocess’
mspec-ci.rb:58:in run' script.rb:189:inmain’
mspec-ci:0

Thanks,
Shri