[Rubygems-developers] Test failures for 0.9.4.4 beta on Windows

Daniel Berger djberg96 at gmail.com
Wed Aug 29 22:37:06 EDT 2007


Hi all,

Ruby 1.8.5 (one click)
Windows XP SP 2
Rubygems tag REL_0_9_4_4

Most of these look like path handling or teardown issues in the test 
suite itself, but I'll investigate a couple of these.

Look for a patch this weekend...

Dan

C:\Documents and Settings\djberge\workspace\rubygems-beta>rake test
C:0:Warning: require_gem is obsolete.  Use gem instead.
(in C:/Documents and Settings/djberge/workspace/rubygems-beta)
Loaded suite 
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader
Started
.........................................................C:/ruby/lib/ruby/1.8/openssl/x509.rb:24: 
warning: instance vari
able @config not initialized
C:/ruby/lib/ruby/1.8/openssl/x509.rb:24: warning: instance variable 
@config not initialized
C:/ruby/lib/ruby/1.8/openssl/x509.rb:24: warning: instance variable 
@config not initialized
...............................E....................................EE.......EE..........E............................FF
.......E......F................E.EEEEEE.................................................................................
........................................................................................................................
.................F..............
Finished in 25.875 seconds.

   1) Error:
test_execute(TestGemCommandsPristineCommand):
NotImplementedError: the symlink() function is unimplemented on this machine
     ./lib/rubygems/installer.rb:256:in `symlink'
     ./lib/rubygems/installer.rb:256:in `generate_bin_symlink'
     ./lib/rubygems/installer.rb:214:in `generate_bin'
     ./lib/rubygems/installer.rb:205:in `each'
     ./lib/rubygems/installer.rb:205:in `generate_bin'
     ./lib/rubygems/installer.rb:111:in `install'
     ./test/gemutilities.rb:113:in `install_gem'
     ./test/test_gem_commands_pristine_command.rb:19:in `test_execute'

   2) Error:
test_download_gem_local(TestGemDependencyInstaller):
Gem::InstallError: unsupported URI scheme C
     ./lib/rubygems/dependency_installer.rb:128:in `download'
     ./test/test_gem_dependency_installer.rb:343:in 
`test_download_gem_local'

   3) Error:
test_download_gem_local_read_only(TestGemDependencyInstaller):
Gem::InstallError: unsupported URI scheme C
     ./lib/rubygems/dependency_installer.rb:128:in `download'
     ./test/test_gem_dependency_installer.rb:357:in 
`test_download_gem_local_read_only'

   4) Error:
test_install_dependency(TestGemDependencyInstaller):
Gem::InstallError: unsupported URI scheme C
     ./lib/rubygems/dependency_installer.rb:128:in `download'
     ./lib/rubygems/dependency_installer.rb:181:in `install'
     ./lib/rubygems/dependency_installer.rb:175:in `each'
     ./lib/rubygems/dependency_installer.rb:175:in `install'
     ./test/test_gem_dependency_installer.rb:72:in `test_install_dependency'
     ./test/test_gem_dependency_installer.rb:70:in `chdir'
     ./test/test_gem_dependency_installer.rb:70:in `test_install_dependency'

   5) Error:
test_install_dependency_existing(TestGemDependencyInstaller):
NotImplementedError: the symlink() function is unimplemented on this machine
     ./lib/rubygems/installer.rb:256:in `symlink'
     ./lib/rubygems/installer.rb:256:in `generate_bin_symlink'
     ./lib/rubygems/installer.rb:214:in `generate_bin'
     ./lib/rubygems/installer.rb:205:in `each'
     ./lib/rubygems/installer.rb:205:in `generate_bin'
     ./lib/rubygems/installer.rb:111:in `install'
     ./test/test_gem_dependency_installer.rb:79:in 
`test_install_dependency_existing'

   6) Error:
test_install_reinstall(TestGemDependencyInstaller):
NotImplementedError: the symlink() function is unimplemented on this machine
     ./lib/rubygems/installer.rb:256:in `symlink'
     ./lib/rubygems/installer.rb:256:in `generate_bin_symlink'
     ./lib/rubygems/installer.rb:214:in `generate_bin'
     ./lib/rubygems/installer.rb:205:in `each'
     ./lib/rubygems/installer.rb:205:in `generate_bin'
     ./lib/rubygems/installer.rb:111:in `install'
     ./test/test_gem_dependency_installer.rb:248:in `test_install_reinstall'

   7) Failure:
test_class_build(TestGemExtRakeBuilder) 
[./test/test_gem_ext_rake_builder.rb:41]:
<["ruby mkrf_conf.rb",
  "",
  "rake RUBYARCHDIR=C:/WINDOWS/temp/test_rubygems_4044/prefix 
RUBYLIBDIR=C:/WINDOWS/temp/test_rubygems_4044/prefix",
  "(in C:/WINDOWS/temp/test_rubygems_4044/ext)\n"]> expected but was
<["ruby mkrf_conf.rb",
  "",
  "rake RUBYARCHDIR=C:/WINDOWS/temp/test_rubygems_4044/prefix 
RUBYLIBDIR=C:/WINDOWS/temp/test_rubygems_4044/prefix",
  "(in C:/WINDOWS/temp/test_rubygems_4044/ext)\nC:0:Warning: require_gem 
is obsolete.  Use gem instead.\n"]>.

   8) Failure:
test_class_build_fail(TestGemExtRakeBuilder) 
[./test/test_gem_ext_rake_builder.rb:55]:
<Gem::InstallError> exception expected but none was thrown.

   9) Error:
test_generate_index(TestGemIndexerIndexer):
Zlib::BufError: buffer error
     ./lib/rubygems/indexer/compressor.rb:22:in `inflate'
     ./lib/rubygems/indexer/compressor.rb:22:in `unzip'
     ./lib/rubygems/indexer/master_index_builder.rb:38:in `paranoid'
     ./lib/rubygems/indexer/master_index_builder.rb:20:in `cleanup'
     ./lib/rubygems/indexer/abstract_index_builder.rb:42:in `build'
     ./lib/rubygems/indexer/indexer.rb:34:in `build_index'
     ./lib/rubygems/indexer/indexer.rb:91:in `generate_index'
     ./test/test_gem_indexer_indexer.rb:34:in `test_generate_index'
     ./lib/rubygems/user_interaction.rb:45:in `use_ui'
     ./lib/rubygems/user_interaction.rb:27:in `use_ui'
     ./test/test_gem_indexer_indexer.rb:33:in `test_generate_index'

  10) Failure:
test_expand_and_validate_gem_dir(TestGemInstaller) 
[./test/test_gem_installer.rb:163]:
<"/nonexistent"> expected but was
<"C:/nonexistent">.

  11) Error:
test_install(TestGemInstaller):
NotImplementedError: the symlink() function is unimplemented on this machine
     ./lib/rubygems/installer.rb:256:in `symlink'
     ./lib/rubygems/installer.rb:256:in `generate_bin_symlink'
     ./lib/rubygems/installer.rb:214:in `generate_bin'
     ./lib/rubygems/installer.rb:205:in `each'
     ./lib/rubygems/installer.rb:205:in `generate_bin'
     ./lib/rubygems/installer.rb:111:in `install'
     ./test/test_gem_installer.rb:461:in `test_install'
     ./lib/rubygems/user_interaction.rb:45:in `use_ui'
     ./lib/rubygems/user_interaction.rb:27:in `use_ui'
     ./test/test_gem_installer.rb:460:in `test_install'

  12) Error:
test_install_check_dependencies(TestGemInstaller):
Errno::EACCES: Permission denied - 
C:/WINDOWS/temp/test_rubygems_4044/a-0.0.2.gem
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `unlink'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1289:in `platform_support'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1280:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:497:in `mv'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest0'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv'
     ./test/test_gem_installer.rb:31:in `setup'

  13) Error:
test_install_force(TestGemInstaller):
Errno::EACCES: Permission denied - 
C:/WINDOWS/temp/test_rubygems_4044/a-0.0.2.gem
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `unlink'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1289:in `platform_support'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1280:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:497:in `mv'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest0'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv'
     ./test/test_gem_installer.rb:31:in `setup'

  14) Error:
test_install_ignore_dependencies(TestGemInstaller):
Errno::EACCES: Permission denied - 
C:/WINDOWS/temp/test_rubygems_4044/a-0.0.2.gem
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `unlink'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1289:in `platform_support'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1280:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:497:in `mv'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest0'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv'
     ./test/test_gem_installer.rb:31:in `setup'

  15) Error:
test_install_missing_dirs(TestGemInstaller):
Errno::EACCES: Permission denied - 
C:/WINDOWS/temp/test_rubygems_4044/a-0.0.2.gem
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `unlink'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1289:in `platform_support'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1280:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:497:in `mv'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest0'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv'
     ./test/test_gem_installer.rb:31:in `setup'

  16) Error:
test_install_with_message(TestGemInstaller):
Errno::EACCES: Permission denied - 
C:/WINDOWS/temp/test_rubygems_4044/a-0.0.2.gem
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `unlink'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1289:in `platform_support'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1280:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:497:in `mv'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest0'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv'
     ./test/test_gem_installer.rb:31:in `setup'

  17) Error:
test_install_writable(TestGemInstaller):
Errno::EACCES: Permission denied - 
C:/WINDOWS/temp/test_rubygems_4044/a-0.0.2.gem
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `unlink'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1281:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1289:in `platform_support'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1280:in `remove_file'
     C:/ruby/lib/ruby/1.8/fileutils.rb:497:in `mv'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest0'
     C:/ruby/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest'
     C:/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv'
     ./test/test_gem_installer.rb:31:in `setup'

  18) Failure:
test_extract_entry_works(TestTarInput)
     [./test/test_package.rb:248:in `test_extract_entry_works'
      C:/ruby/lib/ruby/1.8/fileutils.rb:243:in `each_with_index'
      ./lib/rubygems/package.rb:444:in `each_entry'
      ./lib/rubygems/package.rb:438:in `loop'
      ./lib/rubygems/package.rb:438:in `each_entry'
      ./lib/rubygems/package.rb:423:in `each'
      ./lib/rubygems/package.rb:595:in `each'
      ./lib/rubygems/package.rb:410:in `new'
      ./lib/rubygems/package.rb:594:in `each'
      ./lib/rubygems/package.rb:444:in `each_entry'
      ./lib/rubygems/package.rb:438:in `loop'
      ./lib/rubygems/package.rb:438:in `each_entry'
      ./lib/rubygems/package.rb:423:in `each'
      ./lib/rubygems/package.rb:590:in `each'
      ./test/test_package.rb:237:in `each_with_index'
      ./test/test_package.rb:237:in `test_extract_entry_works'
      ./lib/rubygems/package.rb:583:in `open_from_io'
      ./lib/rubygems/package.rb:576:in `open'
      ./test/test_package.rb:234:in `test_extract_entry_works']:
<33162> expected but was
<33188>.

449 tests, 1507 assertions, 4 failures, 14 errors
rake aborted!
Command failed with status (1): [C:/ruby/bin/ruby -w -Ilib 
"C:/ruby/lib/rub...]

(See full trace by running task with --trace)


More information about the Rubygems-developers mailing list