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

ruby-changes:52974

From: k0kubun <ko1@a...>
Date: Sat, 20 Oct 2018 10:10:13 +0900 (JST)
Subject: [ruby-changes:52974] k0kubun:r65188 (trunk): test_win32ole_event.rb: fire message_loop on retry

k0kubun	2018-10-20 10:10:09 +0900 (Sat, 20 Oct 2018)

  New Revision: 65188

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

  Log:
    test_win32ole_event.rb: fire message_loop on retry
    
    because it's failing even after sleeping 31s in total.
    https://ci.appveyor.com/project/ruby/ruby/builds/19642619/job/pkaj5svr8glk8twt
    https://ci.appveyor.com/project/ruby/ruby/builds/19641381/job/spdvrptpaq1d5778

  Modified files:
    trunk/test/win32ole/test_win32ole_event.rb
Index: test/win32ole/test_win32ole_event.rb
===================================================================
--- test/win32ole/test_win32ole_event.rb	(revision 65187)
+++ test/win32ole/test_win32ole_event.rb	(revision 65188)
@@ -78,7 +78,8 @@ if defined?(WIN32OLE_EVENT) https://github.com/ruby/ruby/blob/trunk/test/win32ole/test_win32ole_event.rb#L78
           tries = 0
           while tries < 5 && instance_variable_get(watch_ivar) == orig_ivar
             seconds = 2 ** tries # sleep at most 31s in total
-            $stderr.puts "test_win32ole_event.rb: sleeping #{seconds}s until #{watch_ivar} is changed from #{orig_ivar.inspect}..."
+            $stderr.puts "test_win32ole_event.rb: retrying and sleeping #{seconds}s until #{watch_ivar} is changed from #{orig_ivar.inspect}..."
+            WIN32OLE_EVENT.message_loop
             sleep(seconds)
             tries += 1
           end

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

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