summaryrefslogtreecommitdiffstats
path: root/lldb/test/api/multiple-debuggers
Commit message (Collapse)AuthorAgeFilesLines
* Move lldb/test to lldb/packages/Python/lldbsuite/test.Zachary Turner2015-10-285-348/+0
| | | | | | | | | | | This is the conclusion of an effort to get LLDB's Python code structured into a bona-fide Python package. This has a number of benefits, but most notably the ability to more easily share Python code between different but related pieces of LLDB's Python infrastructure (for example, `scripts` can now share code with `test`). llvm-svn: 251532
* Rename `lldb_shared` to `use_lldb_suite`.Zachary Turner2015-10-271-1/+1
| | | | llvm-svn: 251444
* Fixed the test suite on MacOSX so that ↵Greg Clayton2015-10-261-5/+0
| | | | | | | | | | "test/api/multithreaded/TestMultithreaded.py" works without errors. The problem was that the @skipIfNoSBHeaders on darwin was trying to use self.lib_dir when it hadn't been set yet. I looked at the code and places were required to set "self.lib_dir" for no real reason as all places that used it just used the LLDB_LIB_DIR environment variable. So I removed all uses of self.lib_dir and replaced them to use 'os.environ["LLDB_LIB_DIR"]'. Did the same for self.implib_dir. llvm-svn: 251315
* Add from __future__ import print_function everywhere.Zachary Turner2015-10-231-1/+3
| | | | | | | | | | | | | Apparently there were tons of instances I missed last time, I guess I accidentally ran 2to3 non-recursively. This should be every occurrence of a print statement fixed to use a print function as well as from __future__ import print_function being added to every file. After this patch print statements will stop working everywhere in the test suite, and the print function should be used instead. llvm-svn: 251121
* Update every test to import `lldb_shared`.Zachary Turner2015-10-221-7/+0
| | | | | | | | | | | | | | | | | | | | | This is necessary in order to allow third party modules to be located under lldb/third_party rather than under the test folder directly. Since we're already touching every test file anyway, we also go ahead and delete the unittest2 import and main block wherever possible. The ability to run a test as a standalone file has already been broken for some time, and if we decide we want this back, we should use unittest instead of unittest2. A few places could not have the import of unittest2 removed,because they depend on the unittest2.expectedFailure or skip decorators. Removing all those was orthogonal in spirit to the purpose of this CL, so the import of unittest2 remains in those files that were using it for its test decorators. Those can be addressed separately. llvm-svn: 251055
* Use six to portably handle module renames in Python 2 and 3Zachary Turner2015-10-211-1/+3
| | | | llvm-svn: 250915
* Reduce load on TestMultipleDebuggers.Todd Fiala2015-10-061-1/+1
| | | | | | | | | 4-core CPUs have a hard time keeping up with the number of debuggers we were simultaneously spawning. This leads to a timeout, which leaves processes hanging around in "suspended mode", which can't be killed with signals. llvm-svn: 249421
* Last set of XFAILs for Windows.Zachary Turner2015-09-161-0/+1
| | | | llvm-svn: 247825
* Mark TestMultipleDebuggers as flakey on Darwin.Todd Fiala2015-09-151-0/+1
| | | | | | | See if this gets us past a few machines that are failing it when it is expected to pass. llvm-svn: 247665
* OS X unexpected success cleanupTodd Fiala2015-09-141-1/+0
| | | | | | | | | | TestPersistObjCPointeeType and TestObjCNewSyntax marked up to expect success on clang >= 7.0.0. TestMultipleDebuggers passed 25/25 times, taking off intermittent. If this changes, I'll make sure it goes into a flaky/flakey category. llvm-svn: 247601
* Fix lld command on Windows for many tests.Adrian McCarthy2015-03-271-0/+1
| | | | llvm-svn: 233416
* Make OSX test run firewall friendly.Oleksiy Vyalov2015-01-221-0/+1
| | | | | | http://reviews.llvm.org/D7115 llvm-svn: 226856
* Some more test markingEnrico Granata2014-10-161-10/+3
| | | | llvm-svn: 219981
* This test needs the SB headers to make senseEnrico Granata2014-10-161-2/+2
| | | | llvm-svn: 219980
* Add ENABLE_THREADS for these threaded testsEd Maste2014-10-021-0/+1
| | | | | | On at least FreeBSD linking with -lpthread is needed for std::thread. llvm-svn: 218899
* Get test executables compiling on Windows.Zachary Turner2014-08-131-3/+6
| | | | | | | | | | | | | | Many of the test executables use pthreads directly. This isn't portable on Windows, so this patch converts these test to use C++11 threads and mutexes. Since Windows' implementation of std::thread classes throw and catch from header files, this patch also disables exceptions when compiling with clang on Windows. Reviewed by: Todd Fiala, Ed Maste Differential Revision: http://reviews.llvm.org/D4816 llvm-svn: 215562
* Add FreeBSD decorator for TestMultipleDebuggersEd Maste2014-07-121-0/+1
| | | | | | llvm.org/pr20282 llvm-svn: 212877
* Flipped intermittent test failures from skip to XFAIL.Todd Fiala2014-07-101-0/+2
| | | | | | | | | | | | | | | | | | The following intermittently-failing tests have been flipped from skip to XFAIL on some combo of Linux and MacOSX: TestCallStopAndContinue.py (Linux, MacOSX) TestCallWithTimeout.py (Linux) TestConvenienceVariables.py (Linux) TestStopHookMultipleThreads.py (Linux) The following new tests have been marked XFAIL but are just intermittently failing: TestMultipleDebug.py (definitely intermittent on MacOSX, not sure I've seen it pass yet on Linux) llvm-svn: 212762
* Get the inferior binary's name via the command line argument insteadJason Molenda2014-07-101-2/+24
| | | | | | of hardcoding it. llvm-svn: 212698
* Fix test name.Jason Molenda2014-07-101-1/+1
| | | | llvm-svn: 212694
* Add a new 'stresstest' category, set the api/multiple-debuggers test case as ↵Jason Molenda2014-07-101-0/+1
| | | | | | a stresstest. llvm-svn: 212673
* Add a new test in api/multiple-debuggers which tries to create 50Jason Molenda2014-07-104-0/+330
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
OpenPOWER on IntegriCloud