Forum: IronRuby Failures in core\module\autoload_spec.rb

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aea6cfe04952626ab630bde47ff82f89?d=identicon&s=25 Shri Borde (Guest)
on 2009-04-18 00:56
(Received via mailing list)
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?

1)
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:in `should'
autoload_spec.rb:172
bug.rb:15:in `ruby_bug'
autoload_spec.rb:160
classes.rb:320:in `protect_loaded_features'
autoload_spec.rb:159
:0:in `instance_eval'
mspec.rb:64:in `protect'
context.rb:131:in `protect'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:in
`<TrueForItems>b__0'

:0:in `each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:in
`Each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
`TrueForItems'
:0:in `all?'
context.rb:129:in `protect'
context.rb:151:in `process'
:0:in `each'
context.rb:143:in `process'
mspec.rb:28:in `describe'
object.rb:10:in `describe'
autoload_spec.rb:0
:0:in `load'
mspec.rb:54:in `files'
:0:in `instance_eval'
mspec.rb:64:in `protect'
mspec.rb:48:in `files'
:0:in `each'
mspec.rb:44:in `files'
mspec.rb:38:in `process'
mspec-ci.rb:58:in `run'
script.rb:189:in `main'
mspec-ci:0

2)
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:in `should'
autoload_spec.rb:180
classes.rb:320:in `protect_loaded_features'
autoload_spec.rb:179
:0:in `instance_eval'
mspec.rb:64:in `protect'
context.rb:131:in `protect'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:in
`<TrueForItems>b__0'

:0:in `each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:in
`Each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
`TrueForItems'
:0:in `all?'
context.rb:129:in `protect'
context.rb:151:in `process'
:0:in `each'
context.rb:143:in `process'
mspec.rb:28:in `describe'
object.rb:10:in `describe'
autoload_spec.rb:0
:0:in `load'
mspec.rb:54:in `files'
:0:in `instance_eval'
mspec.rb:64:in `protect'
mspec.rb:48:in `files'
:0:in `each'
mspec.rb:44:in `files'
mspec.rb:38:in `process'
mspec-ci.rb:58:in `run'
script.rb:189:in `main'
mspec-ci:0

Thanks,
Shri
E1deaac6561498a0e7472e6268ea9ccc?d=identicon&s=25 Jimmy Schementi (Guest)
on 2009-04-18 01:13
(Received via mailing list)
I don't recall ever running into this, but I'm fixing some autoload
issues right now, so I'll take a look.

From: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Shri Borde
Sent: Friday, April 17, 2009 3:54 PM
To: ironruby-core@rubyforge.org
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?

1)
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:in `should'
autoload_spec.rb:172
bug.rb:15:in `ruby_bug'
autoload_spec.rb:160
classes.rb:320:in `protect_loaded_features'
autoload_spec.rb:159
:0:in `instance_eval'
mspec.rb:64:in `protect'
context.rb:131:in `protect'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:in
`<TrueForItems>b__0'

:0:in `each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:in
`Each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
`TrueForItems'
:0:in `all?'
context.rb:129:in `protect'
context.rb:151:in `process'
:0:in `each'
context.rb:143:in `process'
mspec.rb:28:in `describe'
object.rb:10:in `describe'
autoload_spec.rb:0
:0:in `load'
mspec.rb:54:in `files'
:0:in `instance_eval'
mspec.rb:64:in `protect'
mspec.rb:48:in `files'
:0:in `each'
mspec.rb:44:in `files'
mspec.rb:38:in `process'
mspec-ci.rb:58:in `run'
script.rb:189:in `main'
mspec-ci:0

2)
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:in `should'
autoload_spec.rb:180
classes.rb:320:in `protect_loaded_features'
autoload_spec.rb:179
:0:in `instance_eval'
mspec.rb:64:in `protect'
context.rb:131:in `protect'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:in
`<TrueForItems>b__0'

:0:in `each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:in
`Each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
`TrueForItems'
:0:in `all?'
context.rb:129:in `protect'
context.rb:151:in `process'
:0:in `each'
context.rb:143:in `process'
mspec.rb:28:in `describe'
object.rb:10:in `describe'
autoload_spec.rb:0
:0:in `load'
mspec.rb:54:in `files'
:0:in `instance_eval'
mspec.rb:64:in `protect'
mspec.rb:48:in `files'
:0:in `each'
mspec.rb:44:in `files'
mspec.rb:38:in `process'
mspec-ci.rb:58:in `run'
script.rb:189:in `main'
mspec-ci:0

Thanks,
Shri
E1deaac6561498a0e7472e6268ea9ccc?d=identicon&s=25 Jimmy Schementi (Guest)
on 2009-04-21 22:18
(Received via mailing list)
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: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Jimmy
Schementi
Sent: Friday, April 17, 2009 4:13 PM
To: ironruby-core@rubyforge.org
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: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Shri Borde
Sent: Friday, April 17, 2009 3:54 PM
To: ironruby-core@rubyforge.org
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?

1)
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:in `should'
autoload_spec.rb:172
bug.rb:15:in `ruby_bug'
autoload_spec.rb:160
classes.rb:320:in `protect_loaded_features'
autoload_spec.rb:159
:0:in `instance_eval'
mspec.rb:64:in `protect'
context.rb:131:in `protect'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:in
`<TrueForItems>b__0'

:0:in `each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:in
`Each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
`TrueForItems'
:0:in `all?'
context.rb:129:in `protect'
context.rb:151:in `process'
:0:in `each'
context.rb:143:in `process'
mspec.rb:28:in `describe'
object.rb:10:in `describe'
autoload_spec.rb:0
:0:in `load'
mspec.rb:54:in `files'
:0:in `instance_eval'
mspec.rb:64:in `protect'
mspec.rb:48:in `files'
:0:in `each'
mspec.rb:44:in `files'
mspec.rb:38:in `process'
mspec-ci.rb:58:in `run'
script.rb:189:in `main'
mspec-ci:0

2)
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:in `should'
autoload_spec.rb:180
classes.rb:320:in `protect_loaded_features'
autoload_spec.rb:179
:0:in `instance_eval'
mspec.rb:64:in `protect'
context.rb:131:in `protect'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:53:in
`<TrueForItems>b__0'

:0:in `each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:34:in
`Each'
c:\github\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:51:in
`TrueForItems'
:0:in `all?'
context.rb:129:in `protect'
context.rb:151:in `process'
:0:in `each'
context.rb:143:in `process'
mspec.rb:28:in `describe'
object.rb:10:in `describe'
autoload_spec.rb:0
:0:in `load'
mspec.rb:54:in `files'
:0:in `instance_eval'
mspec.rb:64:in `protect'
mspec.rb:48:in `files'
:0:in `each'
mspec.rb:44:in `files'
mspec.rb:38:in `process'
mspec-ci.rb:58:in `run'
script.rb:189:in `main'
mspec-ci:0

Thanks,
Shri
This topic is locked and can not be replied to.