Project

General

Profile

Actions

Bug #6357

closed

readlineのテストtest_editing_modeが実行ユーザの.inputrcに影響される

Added by kimuraw (Wataru Kimura) about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-04-25 trunk 35468) [x86_64-darwin11.3.0]
Backport:
[ruby-dev:45584]

Description

=begin
木村といいます。

readlineのテストが実行したユーザの~/.inputrcによって失敗することがあります。
以下に例を示します。

  1. inputrcでviモードが指定されているとtest_editing_modeが失敗する

% echo set editing-mode vi > inputrc
% INPUTRC=inputrc make test-all TESTS=readline
:

  1. Failure:
    test_editing_mode(TestReadline) [/Volumes/CHome/kimuraw/work/ruby/ruby_2_0/test/readline/test_readline.rb:244]:
    expected but was
    .

32 tests, 328 assertions, 1 failures, 0 errors, 0 skips

  1. inputrcを空にするとすべてのテストが通る。

% echo > inputrc
% INPUTRC=inputrc make test-all TESTS=readline
:

32 tests, 341 assertions, 0 failures, 0 errors, 0 skips

=end

Updated by mame (Yusuke Endoh) about 12 years ago

  • Status changed from Open to Assigned
  • Assignee set to kouji (Kouji Takao)
Actions #2

Updated by nobu (Nobuyoshi Nakada) almost 12 years ago

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

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


  • test/readline/test_readline.rb (setup): avoid affected by user's
    inputrc file. [ruby-dev:45584][Bug #6357]
Actions

Also available in: Atom PDF

Like0
Like0Like0