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

ruby-changes:44881

From: shugo <ko1@a...>
Date: Thu, 1 Dec 2016 13:51:46 +0900 (JST)
Subject: [ruby-changes:44881] shugo:r56954 (trunk): Wait until excpetion handling is ready.

shugo	2016-12-01 13:51:42 +0900 (Thu, 01 Dec 2016)

  New Revision: 56954

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

  Log:
    Wait until excpetion handling is ready.
    
    Because RubyCI on Solaris 10 failed as follows:
    
        1) Failure:
      TestProcess#test_execopts_redirect_open_fifo_interrupt_raise [/export/home/rubyci/unstable10s/tmp/build/20161130T201909Z/ruby/test/ruby/test_process.rb:646]:
      <"ok\n"> expected but was
      <"">.
    
    The argument of sleep (0.5) can be smaller, but I'm not sure.

  Modified files:
    trunk/test/ruby/test_process.rb
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 56953)
+++ test/ruby/test_process.rb	(revision 56954)
@@ -636,11 +636,14 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L636
         class E < StandardError; end
         trap(:USR1) { raise E }
         begin
+          puts "start"
+          STDOUT.flush
           system("cat", :in => "fifo")
         rescue E
           puts "ok"
         end
       EOS
+        assert_equal("start\n", io.gets)
         sleep 0.5
         Process.kill(:USR1, io.pid)
         assert_equal("ok\n", io.read)

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

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