Properly specify a few checksum values for llgs tests.
authorStephane Sezer <sas@cd80.net>
Thu, 20 Nov 2014 18:50:46 +0000 (18:50 +0000)
committerStephane Sezer <sas@cd80.net>
Thu, 20 Nov 2014 18:50:46 +0000 (18:50 +0000)
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

llvm-svn: 222441

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

index 6a3c56c..94ada4f 100644 (file)
@@ -127,7 +127,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
         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_testcase.GdbRemoteTestCaseBase):
         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_testcase.GdbRemoteTestCaseBase):
         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_testcase.GdbRemoteTestCaseBase):
     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()
index 5430890..fdd133c 100644 (file)
@@ -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()
 
index 1d1f73f..16ca370 100644 (file)
@@ -18,7 +18,7 @@ class TestGdbRemoteAbort(gdbremote_testcase.GdbRemoteTestCaseBase):
         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)
 
index 21489f9..c7494bd 100644 (file)
@@ -20,7 +20,7 @@ class TestGdbRemoteSegFault(gdbremote_testcase.GdbRemoteTestCaseBase):
         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)