<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/138084>138084</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb][test] Fix tests TestReverseContinueBreakpoints.py and TestReverseContinueWatchpoints.py on Windows
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lldb
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
slydiman
</td>
</tr>
</table>
<pre>
The following tests failed on Windows x64 (python 3.12.3)
lldb\test\API\functionalities\reverse-execution -p TestReverseContinueBreakpoints.py 2 of 8:
```
======================================================================
FAIL: test_reverse_continue_skip_breakpoint (TestReverseContinueBreakpoints.TestReverseContinueBreakpoints.test_reverse_continue_skip_breakpoint)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\llvm-project\lldb\test\API\functionalities\reverse-execution\TestReverseContinueBreakpoints.py", line 67, in test_reverse_continue_skip_breakpoint
self.reverse_continue_skip_breakpoint_internal(async_mode=False)
File "D:\llvm-project\lldb\test\API\functionalities\reverse-execution\TestReverseContinueBreakpoints.py", line 87, in reverse_continue_skip_breakpoint_internal
self.expect(
File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2512, in expect
self.fail(log_msg)
AssertionError: Ran command:
"thread list"
Got output:
Process 51296 stopped
* thread #1: tid = 0x0910, 0x00007ff758e21070 a.out`trigger_breakpoint at main.c:9:35, name = 'a.out', stop reason = breakpoint 3.1
Expecting sub string: "stopped" (was found)
Expecting sub string: "stop reason = history boundary" (was not found)
Process should be stopped due to history boundary
Config=x86_64-D:\build-x64\bin\clang.exe
======================================================================
FAIL: test_reverse_continue_skip_breakpoint_async (TestReverseContinueBreakpoints.TestReverseContinueBreakpoints.test_reverse_continue_skip_breakpoint_async)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\llvm-project\lldb\test\API\functionalities\reverse-execution\TestReverseContinueBreakpoints.py", line 71, in test_reverse_continue_skip_breakpoint_async
self.reverse_continue_skip_breakpoint_internal(async_mode=True)
File "D:\llvm-project\lldb\test\API\functionalities\reverse-execution\TestReverseContinueBreakpoints.py", line 87, in reverse_continue_skip_breakpoint_internal
self.expect(
File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2512, in expect
self.fail(log_msg)
AssertionError: Ran command:
"thread list"
Got output:
Process 9592 stopped
* thread #1: tid = 0xc3c0, 0x00007ff75bc21070 a.out`trigger_breakpoint at main.c:9:35, name = 'a.out', stop reason = breakpoint 3.1
Expecting sub string: "stopped" (was found)
Expecting sub string: "stop reason = history boundary" (was not found)
Process should be stopped due to history boundary
Config=x86_64-D:\build-x64\bin\clang.exe
----------------------------------------------------------------------
```
lldb\test\API\functionalities\reverse-execution -p TestReverseContinueWatchpoints.py 2 of 4:
```
======================================================================
FAIL: test_reverse_continue_skip_watchpoint (TestReverseContinueWatchpoints.TestReverseContinueWatchpoints.test_reverse_continue_skip_watchpoint)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\decorators.py", line 148, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "D:\llvm-project\lldb\test\API\functionalities\reverse-execution\TestReverseContinueWatchpoints.py", line 68, in test_reverse_continue_skip_watchpoint
self.reverse_continue_skip_watchpoint_internal(async_mode=False)
File "D:\llvm-project\lldb\test\API\functionalities\reverse-execution\TestReverseContinueWatchpoints.py", line 94, in reverse_continue_skip_watchpoint_internal
self.expect(
File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2512, in expect
self.fail(log_msg)
AssertionError: Ran command:
"thread list"
Got output:
Process 52276 stopped
* thread #1: tid = 0xcbd0, 0x00007ff7b18e1067 a.out`trigger_watchpoint at main.c:7:55, name = 'a.out', stop reason = watchpoint 1
Expecting sub string: "stopped" (was found)
Expecting sub string: "stop reason = history boundary" (was not found)
Process should be stopped due to history boundary
Config=x86_64-D:\build-x64\bin\clang.exe
======================================================================
FAIL: test_reverse_continue_skip_watchpoint_async (TestReverseContinueWatchpoints.TestReverseContinueWatchpoints.test_reverse_continue_skip_watchpoint_async)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\decorators.py", line 148, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "D:\llvm-project\lldb\test\API\functionalities\reverse-execution\TestReverseContinueWatchpoints.py", line 74, in test_reverse_continue_skip_watchpoint_async
self.reverse_continue_skip_watchpoint_internal(async_mode=True)
File "D:\llvm-project\lldb\test\API\functionalities\reverse-execution\TestReverseContinueWatchpoints.py", line 94, in reverse_continue_skip_watchpoint_internal
self.expect(
File "D:\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2512, in expect
self.fail(log_msg)
AssertionError: Ran command:
"thread list"
Got output:
Process 49504 stopped
* thread #1: tid = 0xb608, 0x00007ff704241067 a.out`trigger_watchpoint at main.c:7:55, name = 'a.out', stop reason = watchpoint 1
Expecting sub string: "stopped" (was found)
Expecting sub string: "stop reason = history boundary" (was not found)
Process should be stopped due to history boundary
Config=x86_64-D:\build-x64\bin\clang.exe
----------------------------------------------------------------------
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsWU1v2zgT_jX0hYhAUaI-Dj6odv2iwHsoigA9GhQ1lrmhSYGkGvvfLygpjZNua3Ub9GPjQEBkkRzOPJyZZwbkzslWAywRe4PYesF7vzd26dSpkQeuF7VpTsvbPeCdUcrcS91iD847vONSQYONxh-lbsy9w8csxYgW3cnvjcZJFNMoQbREpEKkUqqpEVuFtYitqvfvEFvtei28NJor6SU4xFYWPoF1cANHEH0YwjcdvgXnP4wDK6O91D28scDvOiO1d1F3whSbHS5QEjZCGZkeUqFk_V97SLWp3v0fJdVwDNsJsK2YgNm6O9lt68_whAO5gN-F4VnbjMd88yJ_iFS3lguoubgL6h-M89iCAO2x4Ephxd2w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