Improve TestConcurrentEvents.py
authorDaniel Malea <daniel.malea@intel.com>
Thu, 11 Jul 2013 22:14:47 +0000 (22:14 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Thu, 11 Jul 2013 22:14:47 +0000 (22:14 +0000)
commit7df860a62990b2e14a5d74cd22e934d23a077bdc
tree39c9f2350978840a17870f4bf450d8ffbf6b75a0
parent1c7fcccb499d440b74037b5b0f547bbf1fe1f673
Improve TestConcurrentEvents.py
- code cleanup, improved reporting when failures take place
- ensure known thread is interrupted by using pthread_kill() instead of kill() in the signal worker thread
- above should avoid llvm.org/pr16567 on Mac OS X (though kill() could still cause threads to pop out of existance temporarily)
- added an additional check that all threads have exited after worker threads are all join()ed
- logged llvm.org/pr16603 for the new Linux bug discovered

llvm-svn: 186124
lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
lldb/test/functionalities/thread/concurrent_events/main.cpp