[Lldb-commits] [PATCH] D32753: MainLoop: Add unit tests

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue May 2 09:53:56 PDT 2017


labath created this revision.
Herald added a subscriber: mgorny.

This adds a couple of unit tests to the MainLoop class. To get the
kqueue based version of the signal handling passing, I needed to
modify the implementation a bit to make the queue object persistent.
Otherwise, only the signals which are send during the Run call would get
processed, which did not match the ppoll behaviour.

I also took the opportunity to remove the ForEach template functions and
replace them with something more reasonable.


https://reviews.llvm.org/D32753

Files:
  include/lldb/Host/MainLoop.h
  source/Host/common/MainLoop.cpp
  unittests/Host/CMakeLists.txt
  unittests/Host/MainLoopTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32753.97464.patch
Type: text/x-patch
Size: 14213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170502/8809fca0/attachment-0001.bin>


More information about the lldb-commits mailing list