Skip to content
Merged
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
8 changes: 4 additions & 4 deletions test/support/dap_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ def run_dap_scenario program, &msgs
res_log.delete result
end
}
flunk create_protocol_msg test_info, "Expected the debuggee program to finish" unless wait_pid remote_info.pid, 3
rescue Timeout::Error
flunk create_protocol_msg test_info, "TIMEOUT ERROR (#{TIMEOUT_SEC} sec) while waiting for the following response.\n#{JSON.pretty_generate target_msg}"
ensure
test_info.reader_thread.kill
sock.close
kill_remote_debuggee test_info
if test_info.failed_process
flunk create_protocol_msg test_info, "Expected the debuggee program to finish"
end
remote_info.reader_thread.kill
remote_info.r.close
remote_info.w.close
end
end

Expand Down