Bug #4336

test_require.rb#test_require_path_home が test failure

Added by Motohiro KOSAKI about 3 years ago. Updated almost 3 years ago.

[ruby-dev:43134]
Status:Closed
Priority:Normal
Assignee:Motohiro KOSAKI
Category:test
Target version:1.9.3
ruby -v:ruby 1.9.3dev (2011-01-28 trunk 30697) [x86_64-linux] Backport:

Description

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

3) Failure:
testrequirepathhome(TestRequire) [/home/kosaki/linux/ruby-svn/ruby/test/ruby/testrequire.rb:55]:
Expected /pathname too long (ignored).*(LoadError)/m to match "/home/kosaki/linux/ruby-svn/ruby/ruby: No such file or directory -- testrubytest_require (LoadError)\n".
=end


Related issues

Duplicates ruby-trunk - Bug #4334: r30660 以降 ruby/test_require.rb で 2F Closed 01/28/2011

Associated revisions

Revision 30704
Added by Motohiro KOSAKI about 3 years ago

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

Revision 30705
Added by Motohiro KOSAKI about 3 years ago

  • test/ruby/testrequire.rb (TestRequire#testrequiretoolong_filename): Added -w option because too long path error don't output a message by default since r30660. [Bug #4336]

History

#1 Updated by Motohiro KOSAKI about 3 years ago

  • Status changed from Open to Assigned

=begin
なお、以下のテストではいまだに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\)/)

=end

#2 Updated by Motohiro KOSAKI about 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

=begin
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/testrequire.rb (TestRequire#testrequirepathhome_{1,2}): Added -w option because too long path error don't output a message by default since r30660. [Bug #4336] =end

#3 Updated by Motohiro KOSAKI about 3 years ago

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

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

=end

Also available in: Atom PDF