diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-09 07:46:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-09 07:46:47 +0000 |
commit | 1bed89527ba0f732b058a6da387bf84d8410ae4a (patch) | |
tree | 53f5470976daf61b95550af09093e79c25f436cc /test/io | |
parent | 6a6c89e7f77c8da28c490967f61e1b98681f3f71 (diff) | |
download | ruby-1bed89527ba0f732b058a6da387bf84d8410ae4a.tar.gz |
test_io_console.rb: ignore echo back
* test/io/console/test_io_console.rb (test_getpass): ignore echo
back of input from the master side. some systems seem echo back
but other may not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io')
-rw-r--r-- | test/io/console/test_io_console.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index 5d7a583cb0..972525043c 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -185,7 +185,7 @@ class TestIO_Console < Test::Unit::TestCase run_pty("p IO.console.getpass('> ')") do |r, w| assert_equal("> ", r.readpartial(10)) w.print "asdf\n" - assert_equal("\r\n", r.gets) + assert_include(r.gets, "\n") assert_equal("\"asdf\"", r.gets.chomp) end end |