Project

General

Profile

Actions

Bug #4336

closed

test_require.rb#test_require_path_home が test failure

Added by kosaki (Motohiro KOSAKI) almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2011-01-28 trunk 30697) [x86_64-linux]
Backport:
[ruby-dev:43134]

Description

=begin
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".
    =end

Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #4334: r30660 以降 ruby/test_require.rb で 2FClosednobu (Nobuyoshi Nakada)01/28/2011Actions
Actions #1

Updated by kosaki (Motohiro KOSAKI) almost 14 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

Actions #2

Updated by kosaki (Motohiro KOSAKI) almost 14 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/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]
    =end
Actions #3

Updated by kosaki (Motohiro KOSAKI) almost 14 years ago

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

  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.

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0