[Lldb-commits] [lldb] r211006 - Minor gdb-remote test QListThreadsInStopReply changes from llgs branch.

Todd Fiala todd.fiala at gmail.com
Sun Jun 15 16:33:09 PDT 2014


Author: tfiala
Date: Sun Jun 15 18:33:09 2014
New Revision: 211006

URL: http://llvm.org/viewvc/llvm-project?rev=211006&view=rev
Log:
Minor gdb-remote test QListThreadsInStopReply changes from llgs branch.

Modified:
    lldb/trunk/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py
    lldb/trunk/test/tools/lldb-gdbserver/gdbremote_testcase.py

Modified: lldb/trunk/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py?rev=211006&r1=211005&r2=211006&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py (original)
+++ lldb/trunk/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py Sun Jun 15 18:33:09 2014
@@ -43,9 +43,10 @@ class TestGdbRemoteThreadsInStopReply(gd
         self.assertIsNotNone(threads)
         self.assertEquals(len(threads), thread_count)
 
-        # Stop the process, grab the stop reply content.
+        # Run, then stop the process, grab the stop reply content.
         self.reset_test_sequence()
         self.test_sequence.add_log_lines([
+            "read packet: $c#00",
             "read packet: {}".format(chr(03)),
             {"direction":"send", "regex":r"^\$T([0-9a-fA-F]+)([^#]+)#[0-9a-fA-F]{2}$", "capture":{1:"stop_result", 2:"key_vals_text"} },
             ], True)
@@ -111,18 +112,18 @@ class TestGdbRemoteThreadsInStopReply(gd
         self.set_inferior_startup_launch()
         self.stop_reply_reports_multiple_threads(5)
 
-    def no_QThreadsInStopReply_supplies_no_threads(self, thread_count):
+    def no_QListThreadsInStopReply_supplies_no_threads(self, thread_count):
         # Gather threads from stop notification when QThreadsInStopReply is not enabled.
         stop_reply_threads = self.gather_stop_reply_threads(None, thread_count)
         self.assertEquals(len(stop_reply_threads), 0)
 
     @debugserver_test
     @dsym_test
-    def test_no_QThreadsInStopReply_supplies_no_threads_debugserver_dsym(self):
+    def test_no_QListThreadsInStopReply_supplies_no_threads_debugserver_dsym(self):
         self.init_debugserver_test()
         self.buildDsym()
         self.set_inferior_startup_launch()
-        self.no_QThreadsInStopReply_supplies_no_threads(5)
+        self.no_QListThreadsInStopReply_supplies_no_threads(5)
 
     @llgs_test
     @dwarf_test
@@ -131,7 +132,7 @@ class TestGdbRemoteThreadsInStopReply(gd
         self.init_llgs_test()
         self.buildDwarf()
         self.set_inferior_startup_launch()
-        self.no_QThreadsInStopReply_supplies_no_threads(5)
+        self.no_QListThreadsInStopReply_supplies_no_threads(5)
 
     def stop_reply_reports_correct_threads(self, thread_count):
         # Gather threads from stop notification when QThreadsInStopReply is enabled.

Modified: lldb/trunk/test/tools/lldb-gdbserver/gdbremote_testcase.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-gdbserver/gdbremote_testcase.py?rev=211006&r1=211005&r2=211006&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-gdbserver/gdbremote_testcase.py (original)
+++ lldb/trunk/test/tools/lldb-gdbserver/gdbremote_testcase.py Sun Jun 15 18:33:09 2014
@@ -470,6 +470,7 @@ class GdbRemoteTestCaseBase(TestBase):
         "PacketSize",
         "QStartNoAckMode",
         "QThreadSuffixSupported",
+        "QListThreadsInStopReply",
         "qXfer:auxv:read",
         "qXfer:libraries:read",
         "qXfer:libraries-svr4:read",





More information about the lldb-commits mailing list