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

llvm-svn: 222441
This commit is contained in:
Stephane Sezer 2014-11-20 18:50:46 +00:00
parent e5f27decf9
commit b6e8192a85
4 changed files with 7 additions and 7 deletions

View File

@ -127,7 +127,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.add_no_ack_remote_stream() self.add_no_ack_remote_stream()
self.add_verified_launch_packets(launch_args) self.add_verified_launch_packets(launch_args)
self.test_sequence.add_log_lines( self.test_sequence.add_log_lines(
["read packet: $vCont;c#00", ["read packet: $vCont;c#a8",
"send packet: $W00#00"], "send packet: $W00#00"],
True) True)
@ -159,7 +159,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.add_no_ack_remote_stream() self.add_no_ack_remote_stream()
self.add_verified_launch_packets(launch_args) self.add_verified_launch_packets(launch_args)
self.test_sequence.add_log_lines( self.test_sequence.add_log_lines(
["read packet: $vCont;c#00", ["read packet: $vCont;c#a8",
"send packet: $W{0:02x}#00".format(RETVAL)], "send packet: $W{0:02x}#00".format(RETVAL)],
True) True)
@ -219,7 +219,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
self.add_no_ack_remote_stream() self.add_no_ack_remote_stream()
self.add_verified_launch_packets(launch_args) self.add_verified_launch_packets(launch_args)
self.test_sequence.add_log_lines( 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$" }, {"type":"output_match", "regex":r"^hello, world\r\n$" },
"send packet: $W00#00"], "send packet: $W00#00"],
True) True)
@ -275,7 +275,7 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
def attach_commandline_continue_app_exits(self): def attach_commandline_continue_app_exits(self):
procs = self.prep_debug_monitor_and_inferior() procs = self.prep_debug_monitor_and_inferior()
self.test_sequence.add_log_lines( self.test_sequence.add_log_lines(
["read packet: $vCont;c#00", ["read packet: $vCont;c#a8",
"send packet: $W00#00"], "send packet: $W00#00"],
True) True)
self.expect_gdbremote_sequence() self.expect_gdbremote_sequence()

View File

@ -689,7 +689,7 @@ class GdbRemoteTestCaseBase(TestBase):
def run_process_then_stop(self, run_seconds=1): def run_process_then_stop(self, run_seconds=1):
# Tell the stub to continue. # Tell the stub to continue.
self.test_sequence.add_log_lines( self.test_sequence.add_log_lines(
["read packet: $vCont;c#00"], ["read packet: $vCont;c#a8"],
True) True)
context = self.expect_gdbremote_sequence() context = self.expect_gdbremote_sequence()

View File

@ -18,7 +18,7 @@ class TestGdbRemoteAbort(gdbremote_testcase.GdbRemoteTestCaseBase):
self.assertIsNotNone(procs) self.assertIsNotNone(procs)
self.test_sequence.add_log_lines([ 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"} }, {"direction":"send", "regex":r"^\$T([0-9a-fA-F]{2}).*#[0-9a-fA-F]{2}$", "capture":{ 1:"hex_exit_code"} },
], True) ], True)

View File

@ -20,7 +20,7 @@ class TestGdbRemoteSegFault(gdbremote_testcase.GdbRemoteTestCaseBase):
self.assertIsNotNone(procs) self.assertIsNotNone(procs)
self.test_sequence.add_log_lines([ 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"} }, {"direction":"send", "regex":r"^\$T([0-9a-fA-F]{2}).*#[0-9a-fA-F]{2}$", "capture":{ 1:"hex_exit_code"} },
], True) ], True)