summaryrefslogtreecommitdiff
path: root/test/io
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 07:46:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 07:46:47 +0000
commit6e6dcf2a6ceee796022206900f96a954380d35f1 (patch)
tree53f5470976daf61b95550af09093e79c25f436cc /test/io
parentb3377eaa1360a89db3adb655c1412b80ae5bc2e4 (diff)
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.rb2
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