[Ruby 1.9-Bug#4336][Open] test require.rb#test require path home が test failure

Bug #4336: test_require.rb#test_require_path_home が test failure
http://redmine.ruby-lang.org/issues/show/4336

起票者: Motohiro KOSAKI
ステータス: Open, 優先度: Normal
担当者: Motohiro KOSAKI, カテゴリ: test, Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-01-28 trunk 30697) [x86_64-linux]

r30660でエラー時のメッセージがfprintfからrb_warningにかわったので、(つまり無引数の時にはエラーが出なくなったので)
テストが失敗します。
テストを追従させるつもりでいますが、r30660のrevertのほうが好ましいという人がいたら教えてください。

  1. Failure:
    test_require_path_home(TestRequire)
    [/home/kosaki/linux/ruby-svn/ruby/test/ruby/test_require.rb:55]:
    Expected /pathname too long (ignored).*(LoadError)/m to match
    “/home/kosaki/linux/ruby-svn/ruby/ruby: No such file or directory –
    test_ruby_test_require (LoadError)\n”.

チケット #4336 が更新されました。 (by Motohiro KOSAKI)

ステータス OpenからAssignedに変更

なお、以下のテストではいまだにstderrでエラーが取れているので、若干統一が取れてない気もします。

t = Tempfile.new(["test_ruby_test_require", ".rb"])
t.puts "p :ok"
t.close

ENV["RUBYPATH"] = "~"
ENV["HOME"] = t.path
assert_in_out_err(%w(-S test_ruby_test_require), "", [], 

/(LoadError)/)

チケット #4336 が更新されました。 (by Motohiro KOSAKI)

ステータス AssignedからClosedに変更
進捗 % 0から100に変更

This issue was solved with changeset r30704.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2}):
    Added -w option because too long path error don’t output a message
    by default since r30660. [Bug #4336] [ruby-dev:43134]

チケット #4336 が更新されました。 (by Motohiro KOSAKI)

以下の失敗も同じ原因ですね

  1. Failure:
    test_require_too_long_filename(TestRequire)
    [/home/kosaki/linux/ruby-svn/ruby/test/ruby/test_require.rb:32]:
    Expected 2 to be <= 1.