[Lldb-commits] [PATCH] D18140: [test] Persist packets between expect_gdbremote_sequence invocations

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 14 04:15:33 PDT 2016


labath created this revision.
labath added a reviewer: tfiala.
labath added a subscriber: lldb-commits.

Some tests (Hc_then_Csignal_signals_correct_thread, at least) were sending a "continue" packet in
one expect_gdbremote_sequence invocation, and "expecting" the stop-reply in another call. This
posed a problem, because the were packets were not persisted between the two invocations, and if
the stub was exceptionally fast to respond, the packet would be received in the first invocation
(where it would be ignored) and then the second invocation would fail because it could not find
the packet.

Since doing matching in two invocations seems like a reasonable use of the packet pump, instead
of fixing the test, I make sure the packet_pump supports this usage by making the list of
captured packets persistent.

http://reviews.llvm.org/D18140

Files:
  packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
  packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
  packages/Python/lldbsuite/test/tools/lldb-server/socket_packet_pump.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18140.50577.patch
Type: text/x-patch
Size: 7703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160314/c18d9303/attachment-0001.bin>


More information about the lldb-commits mailing list