mutoh/gettext — Issue #14: lots of test cases failing with ruby 1.9
Author: pravi
Created: 2012-01-13 07:27:40+00:00
State: open

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 method `add' 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:in `each'
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:in `each'
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]: