Skip to content

Commit 0f17d9a

Browse files
authored
[lldb] Fixed the test TestThreadStates when run with a remote target (#92086)
self.wait_for_running_event(process) is always called after self.runCmd("continue"). It is strange to expect eStateConnected here. This test failed in case of a remote target. The correct state is eStateRunning. Removed incorrect checking.
1 parent b2c5e9b commit 0f17d9a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lldb/test/API/functionalities/thread/state/TestThreadStates.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ def thread_state_after_breakpoint_test(self):
102102

103103
def wait_for_running_event(self, process):
104104
listener = self.dbg.GetListener()
105-
if lldb.remote_platform:
106-
lldbutil.expect_state_changes(
107-
self, listener, process, [lldb.eStateConnected]
108-
)
109105
lldbutil.expect_state_changes(self, listener, process, [lldb.eStateRunning])
110106

111107
def thread_state_after_continue_test(self):

0 commit comments

Comments
 (0)