Project

General

Profile

Actions

Bug #11222

closed

make test-all 時の TESTS に -j オプションをつけるとファイルが多重ロードされる

Added by hsbt (Hiroshi SHIBATA) almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Target version:
-
[ruby-dev:49031]

Description

rubygems の upstream をマージしようと作業をしていたところ、TESTS="-j4" のようにパラレル実行のオプションを付けると rubygems のテストが落ちてしまう現象に遭遇しました。

https://github.com/ruby/ruby/pull/915

この問題自体は rubygems を修正することで対応したのですが、tenderlove にマージできるか相談した所

https://github.com/rubygems/rubygems/pull/1257

にあるように、rubygems のコードを2回ロードしているのがおかしいというコメントを貰いました。

-j オプションの挙動をよくわかってないのですが、多重ロードが仕様なのかバグなのか、どなたかご存知でしょうか。

Updated by hsbt (Hiroshi SHIBATA) almost 9 years ago

  • Assignee set to sorah (Sorah Fukumori)
Actions #2

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

  • Status changed from Open to Closed

Applied in changeset r51138.


test_case.rb: fix multiple load

  • lib/rubygems/test_case.rb (teardown): do not delete features
    loaded from the original load paths, the same libraries should
    be loaded again when the same features are required.
    [ruby-dev:49031] [Bug #11222]
Actions

Also available in: Atom PDF

Like0
Like0Like0