Add a new test in api/multiple-debuggers which tries to create 50
authorJason Molenda <jmolenda@apple.com>
Thu, 10 Jul 2014 02:17:31 +0000 (02:17 +0000)
committerJason Molenda <jmolenda@apple.com>
Thu, 10 Jul 2014 02:17:31 +0000 (02:17 +0000)
commit8c074015047cf88fea703d981ba214d895a744d3
treefb2d2d7788a2f2798310f90d37e5158ddfd9fab0
parente81b42fde98c5c2fb023d9cca5c79ed10dfde7ef
Add a new test in api/multiple-debuggers which tries to create 50
debug sessions simultaneously to expose race conditoin/locking
issues.

This directory has an inferior program, testprog.cpp that has a
couple of functions we can put breakpoints on.

It has a driver program, multi-process-driver.cpp, which links
against the LLDB solib and uses the SB APIs.  It creates 50 pthreads,
creates a debugger on all of them, launches a debug session of the
inferior testprog, hits a couple breakpoints, walks the stack,
continues, etc., and then kills the inferior and ends the debug
session.

A pass is if all fifty debug sessions complete successfully
in the alloted time (~60 seconds).

We may need to tweak this one to work correctly on different
platforms/targets but I wanted to get it checked in to start.

llvm-svn: 212671
lldb/test/api/multiple-debuggers/Makefile [new file with mode: 0644]
lldb/test/api/multiple-debuggers/TestMultipleDebuggers.py [new file with mode: 0644]
lldb/test/api/multiple-debuggers/multi-process-driver.cpp [new file with mode: 0644]
lldb/test/api/multiple-debuggers/testprog.cpp [new file with mode: 0644]