Hi, Jim.
I believe that it is Windows specific problem.
Look at test code at test_gem_source_info_cache.rb:80 . Chmod and stat
functions are very limited on Windows platform.
I have added code that shows us what permission file has after we try to set
0222 mode
FileUtils.chmod 0222, @sic.system_cache_file
puts sprintf("%o", File.stat(@sic.system_cache_file).mode)
It returns me
100644
It means that "real" file mode is 644. So RubyGems engine could read cache
data.
Some more explanation you could find here
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/1149
Looks like this test is *nix specific and could be run only on platforms
that fully support FIle.mode.
On 12/3/06, Jim Weirich <[EMAIL PROTECTED]> wrote:
On 12/2/06, Cerberus <[EMAIL PROTECTED]> wrote: 1) Failure:
> test_cache_data_none_readable(TestGemSourceInfoCache)
> [./test/test_gem_source_info_cache.rb:82]:
> <{}> expected but was
> <{"key"=>"sys"}>.
>
> 257 tests, 947 assertions, 1 failures, 0 errors
> rake aborted!
> Command failed with status (1): [c:/PROGRA~1/ruby/bin/ruby -w -Ilib
> "c:/PRO...]
It is working for me. Perhaps we have a test with external dependencies.
What system/ruby version are you using?
--
--
-- Jim Weirich [EMAIL PROTECTED] http://onestepback.org
--
anatol (http://feeds.feedburner.com/apomozov-eng)
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers