Skip to content

Commit

Permalink
check eof
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Dec 17, 2024
1 parent 2fcb6f5 commit 16e9337
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/support/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ def setup_remote_debuggee(cmd)

Timeout.timeout(TIMEOUT_SEC) do
begin
eof = remote_info.r.eof? # check first byte
line = remote_info.r.gets
rescue Errno::EIO
pp(cmd: cmd, env: {'HOME' => homedir})
pp(cmd: cmd, env: {'HOME' => homedir}, eof: eof)
raise
end
remote_info.debuggee_backlog << line
Expand Down

0 comments on commit 16e9337

Please sign in to comment.