ruby-changes:22206
From: nobu <ko1@a...>
Date: Tue, 10 Jan 2012 10:45:20 +0900 (JST)
Subject: [ruby-changes:22206] nobu:r34255 (trunk): * test/readline/test_readline.rb (test_completion_proc_empty_result): rescue NoMemoryError.
nobu 2012-01-10 10:45:09 +0900 (Tue, 10 Jan 2012) New Revision: 34255 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34255 Log: * test/readline/test_readline.rb (test_completion_proc_empty_result): rescue NoMemoryError. Modified files: trunk/test/readline/test_readline.rb Index: test/readline/test_readline.rb =================================================================== --- test/readline/test_readline.rb (revision 34254) +++ test/readline/test_readline.rb (revision 34255) @@ -207,10 +207,10 @@ with_temp_stdio do |stdin, stdout| stdin.write("first\t") stdin.flush - actual_text = nil Readline.completion_proc = ->(text) {[]} - line = replace_stdio(stdin.path, stdout.path) { - Readline.readline("> ") + line = nil + replace_stdio(stdin.path, stdout.path) { + assert_nothing_raised(NoMemoryError) {line = Readline.readline("> ")} } assert_equal("first", line) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/