Ruby 1.9.1-p0 runner.rb errors on Mac OSX Leopard compile


#1

hi there,
we are currently compiling the packages for the Ruby O.-Click Installer
for OSX ( http://rubyosx.com )
just wondering if anyone on OSX Leopard experienced the same error
output from running “ruby runner.rb” in the /test directory of the
sources.

we thought there might be readline issues involved, since some people
suggested patching and compiling readline before compiling ruby, but
that actually didn’t change anything.
here’s the link to our current discussion:
http://rubyforge.org/pipermail/rubyosx-list/2009-February/000014.html

here is the output from a ruby 1.9.1-p0 compilation on mac osx leopard
10.5.6 and the following compile settings:

./configure --prefix=/usr/local --enable-shared --enable-install-doc
–enable-pthread && make && make install && make install-doc

  1. Failure:
    test_delete(TestDBM)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/dbm/test_dbm.rb:327]:
    DBMError expected but nothing was raised.

  2. Error:
    test_05_too_large_ary(TestDRbLarge):
    DRb::DRbConnError: druby://localhost:55819 - #<Errno::ECONNREFUSED:
    Connection refused - connect(2)>
    /Users/ppl/Desktop/test/ruby-1.9.1-p0/test/drb/test_drb.rb:266:in
    `teardown’

  3. Failure:
    test_readable_p(TestFileExhaustive)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test_file_exhaustive.rb:146]:
    Failed assertion, no message given.

  4. Failure:
    test_readable_real_p(TestFileExhaustive)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test_file_exhaustive.rb:155]:
    Failed assertion, no message given.

  5. Failure:
    test_stat_readable_p(TestFileExhaustive)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test_file_exhaustive.rb:615]:
    Failed assertion, no message given.

  6. Failure:
    test_stat_readable_real_p(TestFileExhaustive)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test_file_exhaustive.rb:623]:
    Failed assertion, no message given.

  7. Failure:
    test_stat_writable_p(TestFileExhaustive)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test_file_exhaustive.rb:641]:
    Failed assertion, no message given.

  8. Failure:
    test_stat_writable_real_p(TestFileExhaustive)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test_file_exhaustive.rb:649]:
    Failed assertion, no message given.

  9. Failure:
    test_writable_p(TestFileExhaustive)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test_file_exhaustive.rb:175]:
    Failed assertion, no message given.

  10. Failure:
    test_writable_real_p(TestFileExhaustive)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/ruby/test_file_exhaustive.rb:184]:
    Failed assertion, no message given.

  11. Failure:
    test_self_ensure_gem_directories_write_protected_parents(TestGem)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem.rb:211]:
    Failed assertion, no message given.

  12. Failure:
    test_self_ensure_gem_directories_write_protected(TestGem)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem.rb:194]:
    Failed assertion, no message given.

  13. Failure:
    test_self_prefix(TestGem)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem.rb:374]:
    Expected “/Users/ppl/Desktop/test/ruby-1.9.1-p0”, not nil.

  14. Failure:
    test_execute(TestGemCommandsEnvironmentCommand)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_commands_environment_command.rb:26]:
    Expected /RUBYGEMS PREFIX: / to match "RubyGems Environment:\n -
    RUBYGEMS VERSION: 1.3.1\n - RUBY VERSION: 1.9.1 (2009-01-30 patchlevel

  15. [i386-darwin9.6.0]\n - INSTALLATION DIRECTORY:
    /private/tmp/test_rubygems_63552/gemhome\n - RUBY EXECUTABLE:
    /usr/local/bin/ruby\n - EXECUTABLE DIRECTORY:
    /private/tmp/test_rubygems_63552/gemhome/bin\n - RUBYGEMS PLATFORMS:\n

  • ruby\n - x86-darwin-8\n - GEM PATHS:\n -
    /private/tmp/test_rubygems_63552/gemhome\n - GEM CONFIGURATION:\n -
    :update_sources => true\n - :verbose => true\n - :benchmark =>
    false\n - :backtrace => false\n - :bulk_threshold => 1000\n -
    REMOTE SOURCES:\n - http://gems.example.com\n".
  1. Failure:
    test_uninstall_doc_unwritable(TestGemDocManager)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_doc_manager.rb:23]:
    Gem::FilePermissionError expected but nothing was raised.

  2. Failure:
    test_user_install_disabled_read_only(TestGemInstallUpdateOptions)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_install_update_options.rb:54]:
    Gem::FilePermissionError expected but nothing was raised.

  3. Failure:
    test_generate_bin_script_no_perms(TestGemInstaller)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_installer.rb:293]:
    Gem::FilePermissionError expected but nothing was raised.

  4. Failure:
    test_generate_bin_symlink_no_perms(TestGemInstaller)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_installer.rb:378]:
    Gem::FilePermissionError expected but nothing was raised.

  5. Failure:
    test_install_bindir_read_only(TestGemInstaller)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_installer.rb:721]:
    Failed assertion, no message given.

  6. Failure:
    test_install_user_local_fallback(TestGemInstaller)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_installer.rb:702]:
    Failed assertion, no message given.

  7. Failure:
    test_download_read_only(TestGemRemoteFetcher)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_remote_fetcher.rb:285]:
    Failed assertion, no message given.

  8. Failure:
    test_download_local_read_only(TestGemRemoteFetcher)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_remote_fetcher.rb:272]:
    Expected “/private/tmp/test_rubygems_63552/a-1.gem”, not
    “/private/tmp/test_rubygems_63552/gemhome/cache/a-1.gem”.

  9. Failure:
    test_cache_data_none_readable(TestGemSourceInfoCache)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_source_info_cache.rb:142]:
    Expected {}, not
    {“http://gems.example.com/”=>#<Gem::SourceInfoCacheEntry:0x565a374
    @source_index=#<Gem::SourceIndex:0x565a338 @gems={}, @spec_dirs=nil>,
    @size=0, @all=false>}.

  10. Failure:
    test_cache_data_none_writable(TestGemSourceInfoCache)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_source_info_cache.rb:148]:
    RuntimeError expected but nothing was raised.

  11. Failure:
    test_write_cache_user_from_scratch(TestGemSourceInfoCache)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_source_info_cache.rb:392]:
    system_cache_file

  12. Failure:
    test_cache_file_user_fallback(TestGemSourceInfoCache)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_source_info_cache.rb:197]:
    Expected “/private/tmp/test_rubygems_63552/gemhome/.gem/user_cache”, not
    “/private/tmp/test_rubygems_63552/gemhome/source_cache”.

  13. Failure:
    test_cache_file_none_writable(TestGemSourceInfoCache)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_source_info_cache.rb:203]:
    RuntimeError expected but nothing was raised.

  14. Error:
    test_write_cache_user_no_directory(TestGemSourceInfoCache):
    Errno::ENOENT: No such file or directory -
    /private/tmp/test_rubygems_63552/gemhome/.gem/user_cache
    /Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/gemutilities.rb:190:in
    read_cache' /Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rubygems/test_gem_source_info_cache.rb:425:intest_write_cache_user_no_directory’

  15. Failure:
    test_handle_special_CROSSREF_no_underscore(TestRDocMarkupToHtmlCrossref)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rdoc/test_rdoc_markup_to_html_crossref.rb:87]:
    Expected "

    <a
    href="…/files/Users/ppl/Desktop/test/ruby-1_9_1-p0/test/rdoc/rdoc_markup_to_html_crossref_reference_rb.html">/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rdoc/rdoc_markup_to_html_crossref_reference.rb

", not "

/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/rdoc/rdoc_markup_to_html_crossref_reference.rb

".
  1. Failure:
    test_readonly(TestSDBM)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/sdbm/test_sdbm.rb:539]:
    SDBMError expected but nothing was raised.

  2. Failure:
    test_s_open_error(TestSDBM)
    [/Users/ppl/Desktop/test/ruby-1.9.1-p0/test/sdbm/test_sdbm.rb:124]:
    Errno::EACCES expected but nothing was raised.

5780 tests, 2514732 assertions, 29 failures, 2 errors, 0 skips


#2

On 02.02.2009, at 00:14, Matthias T. wrote:

here’s the link to our current discussion:
http://rubyforge.org/pipermail/rubyosx-list/2009-February/000014.html

here is the output from a ruby 1.9.1-p0 compilation on mac osx leopard
10.5.6 and the following compile settings:

./configure --prefix=/usr/local --enable-shared --enable-install-doc
–enable-pthread && make && make install && make install-doc

----------------8<-------------

5780 tests, 2514732 assertions, 29 failures, 2 errors, 0 skips

Yesterday I compiled it and `make test’ runs without errors.

$ ruby191 test/runner.rb

5779 tests, 2514940 assertions, 8 failures, 0 errors, 0 skips

I used different configure flags:
autoconf && ./configure --prefix=/usr/local --program-suffix=191

$ ruby191 --version
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.6.0]

$ uname -mprsv
Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST
2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 i386
#(10.5.6) on a new macbook

regards, Sandor
Sz


#3

Sandor Szücs wrote:

$ ruby191 test/runner.rb

5779 tests, 2514940 assertions, 8 failures, 0 errors, 0 skips

sandor, can you tell us which system you are on and which tests exactly
failed?

thanks,
matthias


#4

Sandor Szücs wrote:

5779 tests, 2514940 assertions, 8 failures, 0 errors, 0 skips

i am wondering why you have different errors on your tests that we had
on osx leopard compiles of 1.9.1-p0

can you also post your results to removed_email_address@domain.invalid ?
and can you tell us if you did any readline patching or if you compiled
ruby straight with no other precompiles?

thanks, parasew


#5

On 02.02.2009, at 14:42, Matthias T. wrote:

Sandor Szücs wrote:

$ ruby191 test/runner.rb

5779 tests, 2514940 assertions, 8 failures, 0 errors, 0 skips

sandor, can you tell us which system you are on and which tests
exactly
failed?

The system as already mentioned (# Mac OSX 10.5.6 (build 9G55) on a
new macbook):
$ uname -mprsv
Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST
2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 i386

$ ruby191 test/runner.rb

  1. Failure:
    test_self_prefix(TestGem) [/Users/sszuecs/src/ruby/ruby-1.9.1-p0/test/
    rubygems/test_gem.rb:374]:
    Expected “/Users/sszuecs/src/ruby/ruby-1.9.1-p0”, not nil.

  2. Failure:
    test_execute(TestGemCommandsEnvironmentCommand) [/Users/sszuecs/src/
    ruby/ruby-1.9.1-p0/test/rubygems/
    test_gem_commands_environment_command.rb:26]:
    Expected /RUBYGEMS PREFIX: / to match "RubyGems Environment:\n -
    RUBYGEMS VERSION: 1.3.1\n - RUBY VERSION: 1.9.1 (2009-01-30
    patchlevel 0) [i386-darwin9.6.0]\n - INSTALLATION DIRECTORY: /private/
    var/folders/hB/hBWewULTHUKJimmse-1pdE+++TM/-Tmp-/test_rubygems_38546/
    gemhome\n - RUBY EXECUTABLE: /usr/local/bin/ruby191\n - EXECUTABLE
    DIRECTORY: /private/var/folders/hB/hBWewULTHUKJimmse-1pdE+++TM/-Tmp-/
    test_rubygems_38546/gemhome/bin\n - RUBYGEMS PLATFORMS:\n - ruby
    \n - x86-darwin-8\n - GEM PATHS:\n - /private/var/folders/hB/
    hBWewULTHUKJimmse-1pdE+++TM/-Tmp-/test_rubygems_38546/gemhome\n - GEM
    CONFIGURATION:\n - :update_sources => true\n - :verbose => true
    \n - :benchmark => false\n - :backtrace => false\n

  • :bulk_threshold => 1000\n - REMOTE SOURCES:\n -
    http://gems.example.com
    \n".

    1. Failure:
      test_generate_bin_script_install_dir(TestGemInstaller) [/Users/sszuecs/
      src/ruby/ruby-1.9.1-p0/test/rubygems/test_gem_installer.rb:274]:
      Expected 33261, not 33216.

    2. Failure:
      test_generate_bin_bindir(TestGemInstaller) [/Users/sszuecs/src/ruby/
      ruby-1.9.1-p0/test/rubygems/test_gem_installer.rb:206]:
      Expected 33261, not 33216.

    3. Failure:
      test_generate_bin_script_no_shebang(TestGemInstaller) [/Users/sszuecs/
      src/ruby/ruby-1.9.1-p0/test/rubygems/test_gem_installer.rb:316]:
      Expected 33261, not 33216.

    4. Failure:
      test_generate_bin_script_wrappers(TestGemInstaller) [/Users/sszuecs/
      src/ruby/ruby-1.9.1-p0/test/rubygems/test_gem_installer.rb:341]:
      Expected 33261, not 33216.

    5. Failure:
      test_generate_bin_script(TestGemInstaller) [/Users/sszuecs/src/ruby/
      ruby-1.9.1-p0/test/rubygems/test_gem_installer.rb:221]:
      Expected 33261, not 33216.

    6. Failure:
      test_handle_special_CROSSREF_no_underscore
      (TestRDocMarkupToHtmlCrossref) [/Users/sszuecs/src/ruby/ruby-1.9.1-p0/
      test/rdoc/test_rdoc_markup_to_html_crossref.rb:87]:
      Expected "

      <a href="…/files/Users/sszuecs/src/ruby/ruby-1_9_1-p0/
      test/rdoc/rdoc_markup_to_html_crossref_reference_rb.html">/Users/
      sszuecs/src/ruby/ruby-1.9.1-p0/test/rdoc/
      rdoc_markup_to_html_crossref_reference.rb

      ", not "

      /Users/
      sszuecs/src/ruby/ruby-1.9.1-p0/test/rdoc/
      rdoc_markup_to_html_crossref_reference.rb

      ".

5779 tests, 2514940 assertions, 8 failures, 0 errors, 0 skips

If you need more information I will provide them.

Regards, Sandor
Szücs