From 6e6dcf2a6ceee796022206900f96a954380d35f1 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 9 Dec 2015 07:46:47 +0000 Subject: 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 --- test/io/console/test_io_console.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/io/console') 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 -- cgit v1.2.3