Project

General

Profile

Bug #11255

dev系パッケージが入っていないときのテストのエラーが変

Added by znz (Kazuhiro NISHIYAMA) about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-06-12 trunk 50847) [x86_64-linux]
[ruby-dev:49079]

Description

dev 系パッケージが入っていないときの拡張ライブラリが require できるかどうかのテストのエラーが変です。

  1) Error:
TestExtLibs#test_existence_of_fiddle:
ArgumentError: invalid byte sequence in US-ASCII
    .../test/lib/test/unit/assertions.rb:455:in `sub'
    .../test/lib/test/unit/assertions.rb:455:in `block (2 levels) in message'
    .../test/lib/test/unit/assertions.rb:455:in `map'
    .../test/lib/test/unit/assertions.rb:455:in `block in message'

mkmf.log に日本語が入っているからのようで、

diff --git a/test/ruby/test_extlibs.rb b/test/ruby/test_extlibs.rb
index 71dcf2b..995baa0 100644
--- a/test/ruby/test_extlibs.rb
+++ b/test/ruby/test_extlibs.rb
@@ -13,7 +13,7 @@ class TestExtLibs < Test::Unit::TestCase
         log = #{log.dump}
         msg = proc {
           "extension library `#{ext}' is not found#{add_msg}\n" <<
-            (File.exist?(log) ? File.read(log) : "\#{log} not found")
+            (File.exist?(log) ? File.binread(log) : "\#{log} not found")
         }
         assert_nothing_raised(msg) do
           require "#{ext}"

という変更で想定通りに見える failure になおります。

Associated revisions

Revision e738b62d
Added by kazu about 4 years ago

fix error

  • test/ruby/test_extlibs.rb (TestExtLibs::check_existence): fix error. [Bug #11255] [ruby-dev:49079]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 50852
Added by znz (Kazuhiro NISHIYAMA) about 4 years ago

fix error

  • test/ruby/test_extlibs.rb (TestExtLibs::check_existence): fix error. [Bug #11255] [ruby-dev:49079]

Revision 50852
Added by kazu about 4 years ago

fix error

  • test/ruby/test_extlibs.rb (TestExtLibs::check_existence): fix error. [Bug #11255] [ruby-dev:49079]

Revision 50852
Added by kazu about 4 years ago

fix error

  • test/ruby/test_extlibs.rb (TestExtLibs::check_existence): fix error. [Bug #11255] [ruby-dev:49079]

Revision 50852
Added by kazu about 4 years ago

fix error

  • test/ruby/test_extlibs.rb (TestExtLibs::check_existence): fix error. [Bug #11255] [ruby-dev:49079]

Revision 50852
Added by kazu about 4 years ago

fix error

  • test/ruby/test_extlibs.rb (TestExtLibs::check_existence): fix error. [Bug #11255] [ruby-dev:49079]

History

#1

Updated by Anonymous about 4 years ago

  • Status changed from Open to Closed

Applied in changeset r50852.


fix error

  • test/ruby/test_extlibs.rb (TestExtLibs::check_existence): fix error. [Bug #11255] [ruby-dev:49079]

Updated by usa (Usaku NAKAMURA) about 4 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED

Also available in: Atom PDF