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
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@

import dap_server
from dap_server import Source
from lldbsuite.test.decorators import skipIf
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbplatformutil
import lldbgdbserverutils
import base64


# DAP tests as a whole have been flakey on the Windows on Arm bot. See:
# https://github.com/llvm/llvm-project/issues/137660
@skipIf(oslist=["windows"], archs=["aarch64"])
class DAPTestCaseBase(TestBase):
# set timeout based on whether ASAN was enabled or not. Increase
# timeout by a factor of 10 if ASAN is enabled.
Expand Down
3 changes: 0 additions & 3 deletions lldb/test/API/tools/lldb-dap/attach/TestDAP_attach.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def set_and_hit_breakpoint(self, continueToExit=True):
self.continue_to_exit()

@skipIfNetBSD # Hangs on NetBSD as well
@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
def test_by_pid(self):
"""
Tests attaching to a process by process ID.
Expand All @@ -56,7 +55,6 @@ def test_by_pid(self):
self.set_and_hit_breakpoint(continueToExit=True)

@skipIfNetBSD # Hangs on NetBSD as well
@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
def test_by_name(self):
"""
Tests attaching to a process by process name.
Expand Down Expand Up @@ -95,7 +93,6 @@ def test_by_name_waitFor(self):
self.set_and_hit_breakpoint(continueToExit=True)

@skipIfNetBSD # Hangs on NetBSD as well
@skipIfWindows
def test_commands(self):
"""
Tests the "initCommands", "preRunCommands", "stopCommands",
Expand Down
2 changes: 0 additions & 2 deletions lldb/test/API/tools/lldb-dap/cancel/TestDAP_cancel.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def async_blocking_request(self, duration: float) -> int:
def async_cancel(self, requestId: int) -> int:
return self.send_async_req(command="cancel", arguments={"requestId": requestId})

@skipIfWindows
def test_pending_request(self):
"""
Tests cancelling a pending request.
Expand Down Expand Up @@ -70,7 +69,6 @@ def test_pending_request(self):
self.assertEqual(cancel_resp["success"], True)
self.continue_to_exit()

@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
def test_inflight_request(self):
"""
Tests cancelling an inflight request.
Expand Down
1 change: 0 additions & 1 deletion lldb/test/API/tools/lldb-dap/console/TestDAP_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def check_lldb_command(
),
)

@skipIfWindows
def test_scopes_variables_setVariable_evaluate(self):
"""
Tests that the "scopes" request causes the currently selected
Expand Down
1 change: 0 additions & 1 deletion lldb/test/API/tools/lldb-dap/io/TestDAP_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def test_incorrect_content_length(self):
process.stdin.close()
self.assertEqual(process.wait(timeout=5.0), EXIT_FAILURE)

@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
def test_partial_content_length(self):
"""
lldb-dap returns a failure exit code when the input stream is closed
Expand Down
3 changes: 0 additions & 3 deletions lldb/test/API/tools/lldb-dap/launch/TestDAP_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ def test_termination(self):
# Check the return code
self.assertEqual(self.dap_server.process.poll(), 0)

# Flakey on Windows, https://github.com/llvm/llvm-project/issues/137660.
@skipIfWindows
def test_stopOnEntry(self):
"""
Tests the default launch of a simple program that stops at the
Expand Down Expand Up @@ -144,7 +142,6 @@ def test_cwd(self):
)
self.assertTrue(found, "verified program working directory")

@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
def test_debuggerRoot(self):
"""
Tests the "debuggerRoot" will change the working directory of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class TestDAP_startDebugging(lldbdap_testcase.DAPTestCaseBase):
@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
def test_startDebugging(self):
"""
Tests the "startDebugging" reverse request. It makes sure that the IDE can
Expand Down
1 change: 0 additions & 1 deletion lldb/test/API/tools/lldb-dap/step/TestDAP_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def test_step(self):
# only step one thread that is at the breakpoint and stop
break

@skipIfWindows
def test_step_over_inlined_function(self):
"""
Test stepping over when the program counter is in another file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def test_supported_capability_x86_arch(self):
self.continue_to_exit()

@skipIf(archs=["x86", "x86_64"])
@skipIfWindows
def test_supported_capability_other_archs(self):
program = self.getBuildArtifact("a.out")
self.build_and_launch(program)
Expand Down
Loading