[前][次][番号順一覧][スレッド一覧]

ruby-changes:50296

From: mame <ko1@a...>
Date: Thu, 15 Feb 2018 14:34:27 +0900 (JST)
Subject: [ruby-changes:50296] mame:r62411 (trunk): test/io/console/test_io_console.rb (test_oflush): Avoid race condition

mame	2018-02-15 14:34:20 +0900 (Thu, 15 Feb 2018)

  New Revision: 62411

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62411

  Log:
    test/io/console/test_io_console.rb (test_oflush): Avoid race condition
    
    Add a ad-hoc wait.  Follows test_ioflush2.

  Modified files:
    trunk/test/io/console/test_io_console.rb
Index: test/io/console/test_io_console.rb
===================================================================
--- test/io/console/test_io_console.rb	(revision 62410)
+++ test/io/console/test_io_console.rb	(revision 62411)
@@ -212,6 +212,7 @@ defined?(PTY) and defined?(IO.console) a https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L212
       s.oflush # oflush may be issued after "a" is already sent.
       s.print "b"
       s.flush
+      sleep 0.1
       assert_include(["b", "ab"], m.readpartial(10))
     }
   end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]