Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lots of test cases failing with ruby 1.9 #14

Open
pravi opened this issue Jan 13, 2012 · 1 comment
Open

lots of test cases failing with ruby 1.9 #14

pravi opened this issue Jan 13, 2012 · 1 comment

Comments

@pravi
Copy link

pravi commented Jan 13, 2012

Hi I'm trying to build a debian package and I get lots of test failures. All failing tests are given below.

Ruby version is ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

Running tests for ruby1.8 using debian/ruby-tests.rb...
NOTE: Gem.all_load_paths is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem.all_load_paths called from
/media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/runtime/locale_path.rb:56.
NOTE: Gem.all_partials is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem.all_partials called from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:258.
/usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:259:in
_deprecated_all_load_paths': undefined methodadd' for
"/var/lib/gems/1.8":String (NoMethodError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:427:in each_load_path' from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:426:ineach'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:426:in each_load_path' from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:421:ineach'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:421:in each_load_path' from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:258:in _deprecated_all_load_paths'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:257:in each' from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:257:in _deprecated_all_load_paths'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/deprecate.rb:63:in send' from /usr/lib/ruby/vendor_ruby/1.8/rubygems/deprecate.rb:63:in all_load_paths'
from /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/runtime/locale_path.rb:56:in
_unmemoized_default_path_rules' from /usr/lib/ruby/1.8/locale/util/memoizable.rb:73:in default_path_rules'
from /usr/lib/ruby/1.8/locale/util/memoizable.rb:95:in _memoize_dup' from /usr/lib/ruby/1.8/locale/util/memoizable.rb:87:in_memoize'
from /usr/lib/ruby/1.8/locale/util/memoizable.rb:95:in _memoize_dup' from /usr/lib/ruby/1.8/locale/util/memoizable.rb:72:in default_path_rules'
from /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/runtime/locale_path.rb:84:in
initialize' from /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/runtime/textdomain.rb:60:in new'
from /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/runtime/textdomain.rb:60:in
initialize' from /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/runtime/textdomain_manager.rb:208:in new'
from /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/runtime/textdomain_manager.rb:208:in
create_or_find_textdomain' from /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/runtime/textdomain_manager.rb:69:in bind_to'
from /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext.rb:83:in
bindtextdomain_to' from /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext.rb:64:in bindtextdomain'
from /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/parser/glade.rb:18
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require' from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in require'
from ./test/test_parser.rb:3
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require' from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in require'
from debian/ruby-tests.rb:7
from debian/ruby-tests.rb:7:in `each'
from debian/ruby-tests.rb:7

Test "ruby1.8" failed. Continue building the package? (Y/N) y
/usr/bin/ruby1.9.1 -I/usr/lib/ruby/vendor_ruby
/usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
Running tests for ruby1.9.1 using debian/ruby-tests.rb...
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv
will be deprecated in the future, use String#encode instead.
/media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/runtime/locale_path.rb:20:
Use RbConfig instead of obsolete and deprecated Config.
NOTE: Gem.all_load_paths is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem.all_load_paths called from
/media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/runtime/locale_path.rb:56.
NOTE: Gem.all_partials is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem.all_partials called from /usr/lib/ruby/1.9.1/rubygems.rb:258.
NOTE: Gem.all_partials is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem.all_partials called from /usr/lib/ruby/1.9.1/rubygems.rb:258.
Run options:

Running tests:

.FF....EFFFF..FFFFFFFF.FFF...FFFFFFFEError parsing testlib/erb.rhtml
EEEEEE..........F..........FEEEEE

Finished tests in 0.088638s, 778.4470 tests/s, 1241.0025 assertions/s.

  1. Failure:
    test_normalize_class_anonymous_module(TestClassInfo)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_class_info.rb:50]:
    expected but was
    <#Module:0x00000001c50390>.

  2. Failure:
    test_related_classes(TestClassInfo)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_class_info.rb:62]:
    <[M1::M3::C1, M1::M3, M1, M2, Object]> expected but was
    <[M1::M3::C1, M1::M3, M1, Object, M2]>.
    .

  3. Error:
    test_anonymous_module(TestGetText):
    NameError: uninitialized constant #Module:0x00000001c50390::I
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:301:in
    `test_anonymous_module'

  4. Failure:
    test_change_locale(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:24]:
    <"japanese"> expected but was
    <"language">.

  5. Failure:
    test_empty(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:40]:
    <"japanese"> expected but was
    <"language">.

  6. Failure:
    test_frozen(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:308]:
    Failed assertion, no message given.

  7. Failure:
    test_gettext(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:47]:
    <"AAA"> expected but was
    <"aaa">.

  8. Failure:
    test_npgettext(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:106]:
    <["\u4E00\u3064\u306E\u672C", "%{num}\u306E\u672C\u305F\u3061"]>
    expected but was
    <["a book", "%{num} books"]>.

  9. Failure:
    test_nsgettext(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:120]:
    <["single", "plural"]> expected but was
    <["BBB", "CCC"]>.

  10. Failure:
    test_pgettext(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:85]:
    <"\u3048\u30FC\u3073\u30FC"> expected but was
    <"BBB">.

  11. Failure:
    test_plural(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:134]:
    <"all"> expected but was
    <"two">.

  12. Failure:
    test_plural_array(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:215]:
    <"da_plural"> expected but was
    <"two">.

  13. Failure:
    test_plural_format_invalid(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:186]:
    <"a"> expected but was
    <"second">.

  14. Failure:
    test_plural_with_single(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:223]:
    <"hitotsu"> expected but was
    <"single">.

  15. Failure:
    test_restrict_locale(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:283]:
    <"japanese"> expected but was
    <"language">.

  16. Failure:
    test_setlocale(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:252]:
    <"japanese"> expected but was
    <"language">.

  17. Failure:
    test_sgettext(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_gettext.rb:66]:
    <"MATCHED"> expected but was
    <"BBB">.

  18. Failure:
    test_toplevel(TestGetText)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_textdomain_toplevel.rb:30]:
    <"japanese"> expected but was
    <"language">.

  19. Failure:
    test_as_class_methods(TestGetTextMulti)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_textdomain_multi.rb:58]:
    <"japanese"> expected but was
    <"language">.

  20. Failure:
    test_eval(TestGetTextMulti)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_textdomain_multi.rb:53]:
    <"japanese"> expected but was
    <"language">.

  21. Failure:
    test_inheritance(TestGetTextMulti)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_textdomain_multi.rb:24]:
    <"japanese"> expected but was
    <"language">.

  22. Failure:
    test_module_and_sub_modules(TestGetTextMulti)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_textdomain_multi.rb:34]:
    <"japanese"> expected but was
    <"language">.

  23. Failure:
    test_same_msgid_but_different_textdomain(TestGetTextMulti)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_textdomain_multi.rb:75]:
    <"japanese"> expected but was
    <"language">.

  24. Failure:
    test_simple_inheritance(TestGetTextMulti)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_textdomain_multi.rb:64]:
    <"japanese"> expected but was
    <"language">.

  25. Failure:
    test_two_domains_in_a_class(TestGetTextMulti)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_textdomain_multi.rb:13]:
    <"japanese"> expected but was
    <"language">.

  26. Error:
    test_glade(TestGetTextParser):
    Errno::ENOENT: No such file or directory - testlib/gladeparser.glade
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/parser/glade.rb:24:in
    readlines' /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/parser/glade.rb:24:in parse'
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_parser.rb:87:in
    `test_glade'

  27. Error:
    test_rgettext_parse(TestGetTextParser):
    Errno::ENOENT: No such file or directory - testlib/erb.rhtml
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/parser/glade.rb:68:in
    readlines' /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/parser/glade.rb:68:in target?'
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/rgettext.rb:108:in
    block (2 levels) in parse' /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/rgettext.rb:107:in each'
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/rgettext.rb:107:in
    block in parse' /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/rgettext.rb:105:in each'
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/rgettext.rb:105:in
    parse' /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_parser.rb:109:in test_rgettext_parse'

  28. Error:
    test_ruby(TestGetTextParser):
    NoMethodError: undefined method each' for "testlib/gettext.rb":String /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/rgettext.rb:105:in parse'
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_parser.rb:10:in
    `test_ruby'

  29. Error:
    test_ruby_N(TestGetTextParser):
    NoMethodError: undefined method each' for "testlib/N_.rb":String /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/rgettext.rb:105:in parse'
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_parser.rb:39:in
    `test_ruby_N'

  30. Error:
    test_ruby_n(TestGetTextParser):
    NoMethodError: undefined method each' for "testlib/ngettext.rb":String /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/rgettext.rb:105:in parse'
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_parser.rb:57:in
    `test_ruby_n'

  31. Error:
    test_ruby_p(TestGetTextParser):
    NoMethodError: undefined method each' for "testlib/pgettext.rb":String /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/rgettext.rb:105:in parse'
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_parser.rb:75:in
    `test_ruby_p'

  32. Error:
    testlib_erb(TestGetTextParser):
    Errno::ENOENT: No such file or directory - testlib/erb.rhtml
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/parser/erb.rb:31:in
    readlines' /media/forge/debian/diaspora/ruby-gettext-2.1.0/lib/gettext/tools/parser/erb.rb:31:in parse'
    /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_parser.rb:99:in
    `testlib_erb'

  33. Failure:
    test_locale_path(TestLocalePath)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_locale_path.rb:12]:
    <"japanese"> expected but was
    <"language">.

  34. Failure:
    test_thread(TestThread)
    [/media/forge/debian/diaspora/ruby-gettext-2.1.0/test/test_thread.rb:22]:
    <"japanese"> expected but was
    <"language">.

  35. Error:
    test_create_mofiles_generates_mo_for_each_po(TestToolsTools):
    Errno::ENOENT: No such file or directory - tools/files
    /usr/lib/ruby/1.9.1/fileutils.rb:1515:in stat' /usr/lib/ruby/1.9.1/fileutils.rb:1515:inblock in fu_each_src_dest'
    /usr/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' /usr/lib/ruby/1.9.1/fileutils.rb:1513:infu_each_src_dest'
    /usr/lib/ruby/1.9.1/fileutils.rb:436:in cp_r' /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/tools/test_tools.rb:6:in setup'

  36. Error:
    test_msgmerge_inserts_the_new_version(TestToolsTools):
    Errno::ENOENT: No such file or directory - tools/files
    /usr/lib/ruby/1.9.1/fileutils.rb:1515:in stat' /usr/lib/ruby/1.9.1/fileutils.rb:1515:inblock in fu_each_src_dest'
    /usr/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' /usr/lib/ruby/1.9.1/fileutils.rb:1513:infu_each_src_dest'
    /usr/lib/ruby/1.9.1/fileutils.rb:436:in cp_r' /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/tools/test_tools.rb:6:in setup'

  37. Error:
    test_msgmerge_merges_old_and_new_po_file(TestToolsTools):
    Errno::ENOENT: No such file or directory - tools/files
    /usr/lib/ruby/1.9.1/fileutils.rb:1515:in stat' /usr/lib/ruby/1.9.1/fileutils.rb:1515:inblock in fu_each_src_dest'
    /usr/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' /usr/lib/ruby/1.9.1/fileutils.rb:1513:infu_each_src_dest'
    /usr/lib/ruby/1.9.1/fileutils.rb:436:in cp_r' /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/tools/test_tools.rb:6:in setup'

  38. Error:
    test_update_pofiles_updates_a_single_language(TestToolsTools):
    Errno::ENOENT: No such file or directory - tools/files
    /usr/lib/ruby/1.9.1/fileutils.rb:1515:in stat' /usr/lib/ruby/1.9.1/fileutils.rb:1515:inblock in fu_each_src_dest'
    /usr/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' /usr/lib/ruby/1.9.1/fileutils.rb:1513:infu_each_src_dest'
    /usr/lib/ruby/1.9.1/fileutils.rb:436:in cp_r' /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/tools/test_tools.rb:6:in setup'

  39. Error:
    test_update_pofiles_updates_creates_po_folder_if_missing(TestToolsTools):
    Errno::ENOENT: No such file or directory - tools/files
    /usr/lib/ruby/1.9.1/fileutils.rb:1515:in stat' /usr/lib/ruby/1.9.1/fileutils.rb:1515:inblock in fu_each_src_dest'
    /usr/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' /usr/lib/ruby/1.9.1/fileutils.rb:1513:infu_each_src_dest'
    /usr/lib/ruby/1.9.1/fileutils.rb:436:in cp_r' /media/forge/debian/diaspora/ruby-gettext-2.1.0/test/tools/test_tools.rb:6:in setup'

  40. 69 tests, 110 assertions, 26 failures, 13 errors, 0 skips

@arctarus
Copy link

arctarus commented Feb 3, 2012

I have a similar case. When I try to do a rake gettext:find in a rails app, I receive an exception:

undefined method `add' for "/home/gaby/.rvm/gems/ruby-1.9.2-p290@aprop":String

Anybody have idea what could be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants