From d665d51c9296fc0b57945bb67e06040e26cd03c5 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev Date: Thu, 16 May 2024 18:34:58 +0400 Subject: [PATCH] [lldb] Fixed the DAP tests in case of a remote target (#92398) These tests failed in case of Windows host and Linux target, because dap_server tried to run ELF file on Windows. --- lldb/test/API/tools/lldb-dap/commands/TestDAP_commands.py | 2 ++ .../API/tools/lldb-dap/startDebugging/TestDAP_startDebugging.py | 1 + 2 files changed, 3 insertions(+) diff --git a/lldb/test/API/tools/lldb-dap/commands/TestDAP_commands.py b/lldb/test/API/tools/lldb-dap/commands/TestDAP_commands.py index 226b9385fe719a..bfdf9ef2897b2b 100644 --- a/lldb/test/API/tools/lldb-dap/commands/TestDAP_commands.py +++ b/lldb/test/API/tools/lldb-dap/commands/TestDAP_commands.py @@ -7,6 +7,7 @@ class TestDAP_commands(lldbdap_testcase.DAPTestCaseBase): + @skipIfRemote def test_command_directive_quiet_on_success(self): program = self.getBuildArtifact("a.out") command_quiet = ( @@ -60,6 +61,7 @@ def test_command_directive_abort_on_error_launch_commands(self): def test_command_directive_abort_on_error_pre_run_commands(self): self.do_test_abort_on_error(use_pre_run_commands=True) + @skipIfRemote def test_command_directive_abort_on_error_post_run_commands(self): self.do_test_abort_on_error(use_post_run_commands=True) diff --git a/lldb/test/API/tools/lldb-dap/startDebugging/TestDAP_startDebugging.py b/lldb/test/API/tools/lldb-dap/startDebugging/TestDAP_startDebugging.py index fd48e69cae5e25..7700c65f862dc1 100644 --- a/lldb/test/API/tools/lldb-dap/startDebugging/TestDAP_startDebugging.py +++ b/lldb/test/API/tools/lldb-dap/startDebugging/TestDAP_startDebugging.py @@ -11,6 +11,7 @@ class TestDAP_startDebugging(lldbdap_testcase.DAPTestCaseBase): + @skipIfRemote def test_startDebugging(self): """ Tests the "startDebugging" reverse request. It makes sure that the IDE can