mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/win32ole/test_err_in_callback.rb (teardown): get rid
of infinite loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d51b061565
commit
73412af59a
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Sep 11 20:18:24 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||||
|
|
||||||
|
* test/win32ole/test_err_in_callback.rb (teardown): get rid
|
||||||
|
of infinite loop.
|
||||||
|
|
||||||
Thu Sep 11 19:12:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
Thu Sep 11 19:12:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* include/ruby/oniguruma.h (OnigCodePoint): unsigned long to unsigned int.
|
* include/ruby/oniguruma.h (OnigCodePoint): unsigned long to unsigned int.
|
||||||
|
|
|
@ -52,13 +52,16 @@ if defined?(WIN32OLE)
|
||||||
end
|
end
|
||||||
|
|
||||||
def ie_quit
|
def ie_quit
|
||||||
|
WIN32OLE_EVENT.message_loop
|
||||||
sh = WIN32OLE.new('Shell.Application')
|
sh = WIN32OLE.new('Shell.Application')
|
||||||
sh.windows.each do |w|
|
sh.windows.each do |w|
|
||||||
i = 0
|
i = 0
|
||||||
begin
|
begin
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
next if i > 100
|
||||||
WIN32OLE_EVENT.message_loop
|
WIN32OLE_EVENT.message_loop
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
|
next if /#{@dummy_file}/ !~ w.locationURL
|
||||||
e = w.document.all.item("str")
|
e = w.document.all.item("str")
|
||||||
if e && e.innerHTML == @str
|
if e && e.innerHTML == @str
|
||||||
w.quit
|
w.quit
|
||||||
|
@ -66,7 +69,6 @@ if defined?(WIN32OLE)
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
next if i > 1000
|
|
||||||
rescue
|
rescue
|
||||||
retry
|
retry
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue