[Lldb-commits] [lldb] [lldb] Fixed the DAP tests in case of a remote target (PR #92398)
Dmitry Vasilyev via lldb-commits
lldb-commits at lists.llvm.org
Thu May 16 06:23:55 PDT 2024
https://github.com/slydiman created https://github.com/llvm/llvm-project/pull/92398
These tests failed in case of Windows host and Linux target, because dap_server tried to run ELF file on Windows.
>From 74fd3f5b36c5a91a2269bff8261ba494ae6553cc Mon Sep 17 00:00:00 2001
From: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
Date: Thu, 16 May 2024 17:23:08 +0400
Subject: [PATCH] [lldb] Fixed the DAP tests in case of a remote target
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 226b9385fe719..bfdf9ef2897b2 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 fd48e69cae5e2..7700c65f862dc 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
More information about the lldb-commits
mailing list