[Lldb-commits] [PATCH] fix Bug21211 : reworked test/api/multithreaded/test_listener_event_description.cpp to work properly on Linux/FreeBSD

Shawn Best sbest at blueshiftinc.com
Thu Oct 16 20:29:03 PDT 2014


Hi emaste,

Issue D5632 fixed an issue where linux would dump spurious output to tty on startup (due to a broadcast stop event).  After the checkin, it was noticed on FreeBSD a unit test was now failing.  On closer investigation I found the test was using the C++ API to launch an inferior while using an SBListener to monitor the public state changes. It was expecting to see:

eStateRunning
eStateStopped

On Linux/FreeBSD, there is an extra state change

eStateLaunching
eStateRunning
eStateStopped

I reworked the test to work for both cases.

http://reviews.llvm.org/D5837

Files:
  test/api/multithreaded/TestMultithreaded.py
  test/api/multithreaded/test_listener_event_description.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5837.15062.patch
Type: text/x-patch
Size: 3668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141017/23940ea5/attachment.bin>


More information about the lldb-commits mailing list