[Lldb-commits] [PATCH] Fix TestSendSignal.py for remote.

Chaoren Lin chaorenl at google.com
Mon Mar 30 16:54:36 PDT 2015


Hi ovyalov, clayborg,

There is an extra eStateConnected before eStateRunning with remote.

http://reviews.llvm.org/D8714

Files:
  test/functionalities/signal/TestSendSignal.py

Index: test/functionalities/signal/TestSendSignal.py
===================================================================
--- test/functionalities/signal/TestSendSignal.py
+++ test/functionalities/signal/TestSendSignal.py
@@ -81,6 +81,14 @@
         process.Continue()
 
         event = lldb.SBEvent()
+
+        # If running remote test, there should be a connected event
+        if lldb.remote_platform:
+            got_event = process_listener.WaitForEventForBroadcasterWithType(5, broadcaster, lldb.SBProcess.eBroadcastBitStateChanged, event)
+            event_type = lldb.SBProcess.GetStateFromEvent(event)
+            self.assertTrue (got_event, "Got an event")
+            self.assertTrue (event_type == lldb.eStateConnected, "It was the connected event.")
+
         got_event = process_listener.WaitForEventForBroadcasterWithType(5, broadcaster, lldb.SBProcess.eBroadcastBitStateChanged, event)
         event_type = lldb.SBProcess.GetStateFromEvent(event)
         self.assertTrue (got_event, "Got an event")

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8714.22919.patch
Type: text/x-patch
Size: 1024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150330/3383d0e6/attachment.bin>


More information about the lldb-commits mailing list