Skip to content
Merged
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 test/support/dap_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def run_dap_scenario program, &msgs
write_temp_file(strip_line_num(program))

test_info = DAP_TestInfo.new([], [])
remote_info = test_info.remote_info = setup_unix_doman_socket_remote_debuggee
remote_info = test_info.remote_info = setup_unix_domain_socket_remote_debuggee
res_log = test_info.res_backlog
sock = nil
target_msg = nil
Expand Down
6 changes: 3 additions & 3 deletions test/support/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def debug_code(program, remote: true, &test_steps)

private def debug_code_on_unix_domain_socket
test_info = TestInfo.new(dup_scenario, 'UNIX Domain Socket', /\(rdbg:remote\)/)
test_info.remote_info = setup_unix_doman_socket_remote_debuggee
test_info.remote_info = setup_unix_domain_socket_remote_debuggee
cmd = "#{RDBG_EXECUTABLE} -A #{test_info.remote_info.sock_path}"
run_test_scenario cmd, test_info
end
Expand Down Expand Up @@ -314,7 +314,7 @@ def kill_remote_debuggee test_info
def manual_debug_code(program)
print("[Starting a Debug Session with @#{caller.first}]\n")
write_temp_file(strip_line_num(program))
remote_info = setup_unix_doman_socket_remote_debuggee
remote_info = setup_unix_domain_socket_remote_debuggee

while !File.exist?(remote_info.sock_path)
sleep 0.1
Expand All @@ -341,7 +341,7 @@ def setup_remote_debuggee(cmd)

$ruby_debug_test_num = 0

def setup_unix_doman_socket_remote_debuggee
def setup_unix_domain_socket_remote_debuggee
sock_path = DEBUGGER__.create_unix_domain_socket_name + "-#{$ruby_debug_test_num += 1}"
remote_info = setup_remote_debuggee("#{RDBG_EXECUTABLE} -O --sock-path=#{sock_path} #{temp_file_path}")
remote_info.sock_path = sock_path
Expand Down