Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try CI #1125

Closed
wants to merge 6 commits into from
Closed

try CI #1125

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/debug/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module DEBUGGER__
VERSION = "1.9.2"
VERSION = "1.9.2" ###
end
19 changes: 18 additions & 1 deletion test/support/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,26 @@ def setup_remote_debuggee(cmd)
remote_info.debuggee_backlog = []

line = nil
lines = []
msg1 = msg2 = nil
redo_cnt = 0

Timeout.timeout(TIMEOUT_SEC) do
line = remote_info.r.gets
begin
eof = remote_info.r.eof? # check first byte
line = +""
while true
c = remote_info.r.read(1)
break if c == "\n"
line << c
end

# line << remote_info.r.gets
rescue Errno::EIO
pp(cmd: cmd, env: {'HOME' => homedir}, eof: eof, line: line, redo_cnt: redo_cnt, msg1: msg1, msg2: msg2, lines: lines)
raise
end
lines << line
remote_info.debuggee_backlog << line

# wait for two lines (order is unstable)
Expand All @@ -183,6 +199,7 @@ def setup_remote_debuggee(cmd)
end

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

Expand Down
Loading