Skip to content

[lldb][test][Windows] Fix TestConsecutiveBreakpoints.py #138083

Open
@slydiman

Description

@slydiman

The test lldb\test\API\functionalities\breakpoint\consecutive_breakpoints\TestConsecutiveBreakpoints.py failed on Windows x64 if the environment variable LLDB_USE_LLDB_SERVER=1 is not set.

======================================================================
FAIL: test_single_step_thread_specific (TestConsecutiveBreakpoints.ConsecutiveBreakpointsTestCase.test_single_step_thread_specific)
   Test that single step stops, even though the second breakpoint is not valid.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\decorators.py", line 443, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\llvm-project\lldb\test\API\functionalities\breakpoint\consecutive_breakpoints\TestConsecutiveBreakpoints.py", line 121, in test_single_step_thread_specific
    self.finish_test()
  File "D:\llvm-project\lldb\test\API\functionalities\breakpoint\consecutive_breakpoints\TestConsecutiveBreakpoints.py", line 42, in finish_test
    self.assertState(self.process.GetState(), lldb.eStateExited)
  File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2628, in assertState
    self.fail(self._formatMessage(msg, error))
AssertionError: stopped (5) != exited (10)
Config=x86_64-D:\as\mainline\build-x64\bin\clang.exe
----------------------------------------------------------------------

python version is 3.12.3
Note cmake is configured with -DLLVM_LIT_ARGS="-avj 2"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions