mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/readline/test_readline.rb (setup): avoid affected by user's
inputrc file. [ruby-dev:45584][Bug #6357] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
664a13b732
commit
0a68f1200b
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Apr 27 10:58:17 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/readline/test_readline.rb (setup): avoid affected by user's
|
||||||
|
inputrc file. [ruby-dev:45584][Bug #6357]
|
||||||
|
|
||||||
Fri Apr 27 01:45:05 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
Fri Apr 27 01:45:05 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* thread.c (rb_threadptr_execute_interrupts_common):
|
* thread.c (rb_threadptr_execute_interrupts_common):
|
||||||
|
|
|
@ -36,7 +36,14 @@ else
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestReadline < Test::Unit::TestCase
|
class TestReadline < Test::Unit::TestCase
|
||||||
|
INPUTRC = "INPUTRC"
|
||||||
|
|
||||||
|
def setup
|
||||||
|
@inputrc, ENV[INPUTRC] = ENV[INPUTRC], IO::NULL
|
||||||
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
|
ENV[INPUTRC] = @inputrc
|
||||||
Readline.instance_variable_set("@completion_proc", nil)
|
Readline.instance_variable_set("@completion_proc", nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue