[Lldb-commits] [lldb] r222441 - Properly specify a few checksum values for llgs tests.

Stephane Sezer sas at cd80.net
Thu Nov 20 10:50:46 PST 2014


Author: sas
Date: Thu Nov 20 12:50:46 2014
New Revision: 222441

URL: http://llvm.org/viewvc/llvm-project?rev=222441&view=rev
Log:
Properly specify a few checksum values for llgs tests.

Summary: In noack mode, these checksums are ignored by llgs, but some implementations need them still. Specify these checksums to ease integration.

Test Plan: Run the tests before and after the change and make sure nothing breaks.

Reviewers: clayborg, tfiala

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D6343

Modified:
    lldb/trunk/test/tools/lldb-gdbserver/TestLldbGdbServer.py
    lldb/trunk/test/tools/lldb-gdbserver/gdbremote_testcase.py
    lldb/trunk/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteAbort.py
    lldb/trunk/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteSegFault.py

Modified: lldb/trunk/test/tools/lldb-gdbserver/TestLldbGdbServer.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-gdbserver/TestLldbGdbServer.py?rev=222441&r1=222440&r2=222441&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-gdbserver/TestLldbGdbServer.py (original)
+++ lldb/trunk/test/tools/lldb-gdbserver/TestLldbGdbServer.py Thu Nov 20 12:50:46 2014
@@ -127,7 +127,7 @@ class LldbGdbServerTestCase(gdbremote_te
         self.add_no_ack_remote_stream()
         self.add_verified_launch_packets(launch_args)
         self.test_sequence.add_log_lines(
-            ["read packet: $vCont;c#00",
+            ["read packet: $vCont;c#a8",
              "send packet: $W00#00"],
             True)
 
@@ -159,7 +159,7 @@ class LldbGdbServerTestCase(gdbremote_te
         self.add_no_ack_remote_stream()
         self.add_verified_launch_packets(launch_args)
         self.test_sequence.add_log_lines(
-            ["read packet: $vCont;c#00",
+            ["read packet: $vCont;c#a8",
              "send packet: $W{0:02x}#00".format(RETVAL)],
             True)
 
@@ -219,7 +219,7 @@ class LldbGdbServerTestCase(gdbremote_te
         self.add_no_ack_remote_stream()
         self.add_verified_launch_packets(launch_args)
         self.test_sequence.add_log_lines(
-            ["read packet: $vCont;c#00",
+            ["read packet: $vCont;c#a8",
              {"type":"output_match", "regex":r"^hello, world\r\n$" },
              "send packet: $W00#00"],
             True)
@@ -275,7 +275,7 @@ class LldbGdbServerTestCase(gdbremote_te
     def attach_commandline_continue_app_exits(self):
         procs = self.prep_debug_monitor_and_inferior()
         self.test_sequence.add_log_lines(
-            ["read packet: $vCont;c#00",
+            ["read packet: $vCont;c#a8",
              "send packet: $W00#00"],
             True)
         self.expect_gdbremote_sequence()

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=222441&r1=222440&r2=222441&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-gdbserver/gdbremote_testcase.py (original)
+++ lldb/trunk/test/tools/lldb-gdbserver/gdbremote_testcase.py Thu Nov 20 12:50:46 2014
@@ -689,7 +689,7 @@ class GdbRemoteTestCaseBase(TestBase):
     def run_process_then_stop(self, run_seconds=1):
         # Tell the stub to continue.
         self.test_sequence.add_log_lines(
-             ["read packet: $vCont;c#00"],
+             ["read packet: $vCont;c#a8"],
              True)
         context = self.expect_gdbremote_sequence()
 

Modified: lldb/trunk/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteAbort.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteAbort.py?rev=222441&r1=222440&r2=222441&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteAbort.py (original)
+++ lldb/trunk/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteAbort.py Thu Nov 20 12:50:46 2014
@@ -18,7 +18,7 @@ class TestGdbRemoteAbort(gdbremote_testc
         self.assertIsNotNone(procs)
 
         self.test_sequence.add_log_lines([
-            "read packet: $vCont;c#00",
+            "read packet: $vCont;c#a8",
             {"direction":"send", "regex":r"^\$T([0-9a-fA-F]{2}).*#[0-9a-fA-F]{2}$", "capture":{ 1:"hex_exit_code"} },
             ], True)
 

Modified: lldb/trunk/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteSegFault.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteSegFault.py?rev=222441&r1=222440&r2=222441&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteSegFault.py (original)
+++ lldb/trunk/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteSegFault.py Thu Nov 20 12:50:46 2014
@@ -20,7 +20,7 @@ class TestGdbRemoteSegFault(gdbremote_te
         self.assertIsNotNone(procs)
 
         self.test_sequence.add_log_lines([
-            "read packet: $vCont;c#00",
+            "read packet: $vCont;c#a8",
             {"direction":"send", "regex":r"^\$T([0-9a-fA-F]{2}).*#[0-9a-fA-F]{2}$", "capture":{ 1:"hex_exit_code"} },
             ], True)
 





More information about the lldb-commits mailing list