summaryrefslogtreecommitdiffstats
path: root/lldb/test/api/multithreaded
Commit message (Collapse)AuthorAgeFilesLines
* Move lldb/test to lldb/packages/Python/lldbsuite/test.Zachary Turner2015-10-2811-576/+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-2/+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
* Skip TestMultithreaded on Windows.Adrian McCarthy2015-10-211-14/+11
| | | | | | Differential Revision: http://reviews.llvm.org/D13923 llvm-svn: 250899
* Add expectedFlakeyFreeBSD to TestMultithreaded testsEd Maste2015-09-141-0/+3
| | | | | | One or more of these tests failed in 25 of 100 dotest.py runs. llvm-svn: 247566
* XFAIL Tests that require C++ exceptions on Windows.Zachary Turner2015-08-211-0/+4
| | | | | | | | | clang-cl does not yet support C++ exceptions, so these tests will not even compile. Re-enabling these tests is tracked by llvm.org/pr24538 llvm-svn: 245747
* Mark test_sb_api_listener_event_process_state as flakeyYing Chen2015-07-011-0/+1
| | | | llvm-svn: 241203
* Revert "Mark test_sb_api_listener_event_process_state as flakey"Ying Chen2015-06-291-1/+0
| | | | | | | This reverts commit a4f5f4da7e164b7ac358a75f2e4254c25718ad4b. This test fails 100% with gcc4.9.2, revert it first. Will find out why xfail is overruled by xflaky. llvm-svn: 241014
* Mark test_sb_api_listener_event_process_state as flakeyTamas Berghammer2015-06-291-0/+1
| | | | llvm-svn: 240964
* Fix TestMultithreaded.Chaoren Lin2015-05-291-1/+1
| | | | llvm-svn: 238529
* Refactor test runner to print sub-test-case pass/fail rate.Zachary Turner2015-05-281-1/+1
| | | | llvm-svn: 238467
* Mark TestMultithreaded.test_sb_api_listener_resume as XFAIL with gcc 4.8 and ↵Oleksiy Vyalov2015-05-051-1/+1
| | | | | | higher. llvm-svn: 236549
* XFAILing a test that fails with gcc 4.9 x86_64Vince Harron2015-05-041-0/+1
| | | | llvm-svn: 236407
* TestMultithreaded improvementsVince Harron2015-05-041-12/+11
| | | | | | | | | | | | | | These tests link against host lldb API. Compiler's target triple must match liblldb triple. Instead of naively skipping i386, I added a check of the liblldb arch against the compiler target arch. This is useful for 32 bit API builds (planned for Windows) Since remote is disabled, we can assume the os is the same. Also, removed skipIfLinuxClang because it's passing llvm-svn: 236396
* XFAIL tests that are failed on linux with gcc-4.9.2Ying Chen2015-04-211-0/+3
| | | | | | | | | | | | | | | | | | | Summary: - add decorator functions to xfail and skip test on specific os, architecture and version of comipler - xfail failing test with gcc-4.9.2 on linux - add one usage of skipIf function Test Plan: Run tests with different archs, and version of compilers to verify decorator function working as expected Run tests with gcc-4.9.2 and no failure reported Reviewers: sivachandra, ovyalov, vharron, chaoren Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8851 llvm-svn: 235368
* 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-1/+3
| | | | | | http://reviews.llvm.org/D7115 llvm-svn: 226856
* fix Bug21211 : reworked ↵Shawn Best2014-11-212-17/+49
| | | | | | | | | | | | | | | | | | | | | test/api/multithreaded/test_listener_event_description.cpp to work properly on Linux/FreeBSD 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. As on OSx, 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 and re-enabled the test of FreeBSD. Differential Revision: http://reviews.llvm.org/D5837 llvm-svn: 222511
* add Makefile rule for test program CREATE_STD_THREADSShawn Best2014-11-141-1/+1
| | | | | | | | | Effectively removes -lpthreads from linux/gcc build of test programs in test/api/multithreaded. This was done due to that combination causing a test program to hang due, likely due to an issue with gcc linker and libstdc++ conflicting pthreads code in test program and pthread used by lldb. Issue has been documented at: http://llvm.org/bugs/show_bug.cgi?id=21553 Differential Revision: http://reviews.llvm.org/D5838 llvm-svn: 222031
* Make the "synchronous" mode actually work without race conditions.Greg Clayton2014-10-211-0/+1
| | | | | | There were many issues with synchronous mode that we discovered when started to try and add a "batch" mode. There was a race condition where the event handling thread might consume events when in sync mode and other times the Process::WaitForProcessToStop() would consume them. This also led to places where the Process IO handler might or might not get popped when it needed to be. llvm-svn: 220254
* Some more test markingEnrico Granata2014-10-161-1/+1
| | | | llvm-svn: 219981
* Add decorator for FreeBSD failureEd Maste2014-10-081-0/+1
| | | | | | llvm.org/pr21211 llvm-svn: 219329
* This test also relies on the SB API headers. Same logicEnrico Granata2014-10-061-0/+4
| | | | llvm-svn: 219147
* 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
* Add some tests to be skipped when run remotely and also fixed a test to be ↵Greg Clayton2014-09-181-0/+4
| | | | | | more reliable when it comes to stopping on a specific line. llvm-svn: 218079
* Clean up after the multithreaded test case finishes.Jason Molenda2014-08-261-0/+3
| | | | | | | Patch by Sean Callanan. <rdar://problem/18140875> llvm-svn: 216504
* Fix broken TestMultithreaded on Linux.Todd Fiala2014-05-131-2/+0
| | | | | | | | The clean line is failing under Ubuntu 12.04/gcc. It cleans fine without it on MacOSX. It doesn't clean right on Linux but at least now it doesn't fail the test. llvm-svn: 208713
* Re-enable TestMultithreaded.py test on Linux.Todd Fiala2014-02-281-1/+0
| | | | | | | | I could not get http://llvm.org/bugs/show_bug.cgi?id=16016) to fail on my end running 10 times in a row. Re-enabling the test. llvm-svn: 202446
* Remove decorators for now-fixed pr18191Ed Maste2014-01-181-4/+0
| | | | llvm-svn: 199557
* Correctly set the working directory when launching processes for both local ↵Greg Clayton2013-12-132-2/+2
| | | | | | and remote targets. llvm-svn: 197266
* Massive test suite cleanup to stop everyone from manually having to compute ↵Greg Clayton2013-12-101-1/+1
| | | | | | | | | | "mydir" inside each test case. This has led to many test suite failures because of copy and paste where new test cases were based off of other test cases and the "mydir" variable wasn't updated. Now you can call your superclasses "compute_mydir()" function with "__file__" as the sole argument and the relative path will be computed for you. llvm-svn: 196985
* test: Update decorators for FreeBSD failures with threaded inferior supportEd Maste2013-12-091-4/+4
| | | | | | | llvm.org/pr18190 llvm.org/pr18191 llvm-svn: 196792
* <rdar://problem/15368142>Enrico Granata2013-11-012-2/+1
| | | | | | For this test case, one needs to get the name of the symbol since we don't have debug info to generate an SBFunction llvm-svn: 193879
* Skip this test case pending figuring out why it failsEnrico Granata2013-11-011-0/+1
| | | | llvm-svn: 193844
* test: Update FreeBSD failure decoratorsEd Maste2013-09-131-0/+4
| | | | | | | | | | | | | | | llvm.org/pr15261 missing size for static arrays llvm.org/pr15278 expressions generating signals llvm.org/pr15824 thread states aren't properly maintained llvm.org/pr16696 threaded inferior debugging not yet on FreeBSD llvm.org/pr17214 inline stepping fails on FreeBSD llvm.org/pr17225 Clang assertion failure llvm.org/pr17226 frame info lost after failed expression evaluation llvm.org/pr17228 test timeout The first three are existing Linux issues that also affect FreeBSD. llvm-svn: 190698
* Use getwd(0) on FreeBSD as on OS X.Ed Maste2013-09-051-1/+1
| | | | llvm-svn: 190070
* merge lldb-platform-work branch (and assorted fixes) into trunkDaniel Malea2013-08-261-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This merge brings in the improved 'platform' command that knows how to interface with remote machines; that is, query OS/kernel information, push and pull files, run shell commands, etc... and implementation for the new communication packets that back that interface, at least on Darwin based operating systems via the POSIXPlatform class. Linux support is coming soon. Verified the test suite runs cleanly on Linux (x86_64), build OK on Mac OS X Mountain Lion. Additional improvements (not in the source SVN branch 'lldb-platform-work'): - cmake build scripts for lldb-platform - cleanup test suite - documentation stub for qPlatform_RunCommand - use log class instead of printf() directly - reverted work-in-progress-looking changes from test/types/TestAbstract.py that work towards running the test suite remotely. - add new logging category 'platform' Reviewers: Matt Kopec, Greg Clayton Review: http://llvm-reviews.chandlerc.com/D1493 llvm-svn: 189295
* Disable test case that causes assertion failure on LinuxDaniel Malea2013-05-151-1/+2
| | | | | | | - filed llvm.org/pr16016 - fixed URL for llvm.org/pr16000 llvm-svn: 181902
* Didn't mean to check in this change...Jim Ingham2013-05-151-1/+1
| | | | llvm-svn: 181858
* Need to add the LLDB.framework directory to the rpath for the driver ↵Jim Ingham2013-05-151-1/+1
| | | | | | programs or they won't run. llvm-svn: 181857
* Fix GCC buildbot failures in API/Multithreaded testsDaniel Malea2013-05-142-1/+2
| | | | | | | - fix typo initializing unique_ptr - add missing throw specifier to play nice with older libstdc++ exception class llvm-svn: 181831
* Skip C++ API/Multithreaded tests that are unsupported with Clang/libstdc++Daniel Malea2013-05-141-0/+4
| | | | | | | - older versions of clang are unable to include <chrono> from libstdc++ - skipping tests until buildbots are updated llvm-svn: 181829
* Adding C++ tests that drive LLDB from multiple threadsDaniel Malea2013-05-1411-0/+520
- test_breakpoint_callback -- filed llvm.org/pr-16000 - test_listener_resume -- resume a process from a thread waiting on SBListener - test_listener_event_description -- SBEvent description from SBListener thread - test_listener_event_process -- query process/thread/stack info from SBListener thread llvm-svn: 181819
OpenPOWER on IntegriCloud