Skip to content

Commit

Permalink
cnt redo
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Dec 18, 2024
1 parent 98fa340 commit 38702c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/support/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def setup_remote_debuggee(cmd)

line = nil
msg1 = msg2 = nil
redo_cnt = 0

Timeout.timeout(TIMEOUT_SEC) do
begin
Expand All @@ -182,7 +183,7 @@ def setup_remote_debuggee(cmd)

# line << remote_info.r.gets
rescue Errno::EIO
pp(cmd: cmd, env: {'HOME' => homedir}, eof: eof, line: line)
pp(cmd: cmd, env: {'HOME' => homedir}, eof: eof, line: line, redo_cnt: redo_cnt, msg1: msg1, msg2: msg2)
raise
end
remote_info.debuggee_backlog << line
Expand All @@ -196,6 +197,7 @@ def setup_remote_debuggee(cmd)
end

break if msg1 && msg2
redo_cnt += 1
redo # loop
end

Expand Down

0 comments on commit 38702c9

Please sign in to comment.