summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities
Commit message (Collapse)AuthorAgeFilesLines
...
* Make this test case a little more resilient to class name changesEnrico Granata2014-10-021-1/+1
| | | | llvm-svn: 218896
* Update to match strings output by lldb.Jason Molenda2014-10-021-1/+1
| | | | llvm-svn: 218853
* Add a couple of extra exepct strings so this test file keeps in sync with lldbJason Molenda2014-10-021-0/+2
| | | | | | a little better. llvm-svn: 218851
* Allow Python commands to optionally take an SBExecutionContext argument in ↵Enrico Granata2014-10-013-0/+8
| | | | | | case they need to handle 'where they want to act' separately from the notion of 'currently-selected entity' that is associated to the debugger. Do this in an (hopefully) non-breaking way by running an argcount check before passing in the new argument. Update the test case to also check for this new feature. www update to follow llvm-svn: 218834
* Adding a test for k5 binariesMatthew Gardiner2014-10-012-0/+1
| | | | llvm-svn: 218754
* Fix the kalimba arch 4 test, broken when I introduced handlingMatthew Gardiner2014-10-011-1/+1
| | | | | | of kalimba architecture variants. llvm-svn: 218749
* Add ASan history threads into process_sp->GetExtendedThreadList, so they ↵Kuba Brecka2014-09-231-0/+6
| | | | | | | | don't get freed too early Reviewed at http://reviews.llvm.org/D5452 llvm-svn: 218323
* Enable libcxx map test on FreeBSD againEd Maste2014-09-211-1/+0
| | | | | | | | | | The test used to trigger an assertion failure "Cannot get layout of forward declarations!", but it no longer fails when built with Clang 3.4.1 (system compiler) or 3.5 from SVN on FreeBSD. llvm.org/pr17231 llvm-svn: 218196
* Test suite runs better again after recent fixes that would select a platform ↵Greg Clayton2014-09-191-0/+2
| | | | | | | | | | | | | if a "file a.out" auto selected a different platform than the selected one. Changes include: - fix it so you can select the "host" platform using "platform select host" - change all callbacks that create platforms to returns shared pointers - fix TestImageListMultiArchitecture.py to restore the "host" platform by running "platform select host" - Add a new "PlatformSP Platform::Find(const ConstString &name)" method to get a cached platform - cache platforms that are created and re-use them instead of always creating a new one llvm-svn: 218145
* Add some tests to be skipped when run remotely and also fixed a test to be ↵Greg Clayton2014-09-185-0/+11
| | | | | | more reliable when it comes to stopping on a specific line. llvm-svn: 218079
* More categories could be added, and having an explicit list in this test ↵Enrico Granata2014-09-161-10/+1
| | | | | | case is a fairly bullet-proof recipe for disaster. Use the * enabling feature to workaround this. Fixes rdar://18358649 llvm-svn: 217927
* Add a --help (-h) option to "command script add" that enables users to ↵Enrico Granata2014-09-151-9/+7
| | | | | | | | | | | | | define a one-liner short help for their command Also, in case they don't define any, change the default from "Run Python function <blah>" into "For more information run help <blah>" The core issue here is that Python only allows one docstring per function, so we can't really attach both a short and a long help to the same command easily There are alternatives but this is not a pressing enough concern to go through the motions quite yet Fixes rdar://18322737 llvm-svn: 217795
* Fix test failure for ↵Kuba Brecka2014-09-082-5/+10
| | | | | | | | test/functionalities/connect_remote/TestConnectRemote.py when port 12345 is already in use Reviewed at http://reviews.llvm.org/D5221 llvm-svn: 217388
* Modify call-function and rdar-12437442 tests to clean up all files produced ↵Todd Fiala2014-09-081-0/+4
| | | | | | during test run. llvm-svn: 217387
* Implement ASan history threads in SB APIKuba Brecka2014-09-061-0/+18
| | | | | | | | | Reviewed at http://reviews.llvm.org/D5219 and http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20140901/012809.html llvm-svn: 217300
* ASan malloc/free history threadsKuba Brecka2014-09-043-0/+130
| | | | | | Reviewed at http://reviews.llvm.org/D4596 llvm-svn: 217116
* Allow "breakpoint command add" to add commands to more than one breakpoint ↵Jim Ingham2014-08-291-1/+9
| | | | | | | | at a time. <rdar://problem/13314462> llvm-svn: 216747
* There seems to be no sane reason for a test case to enable logging every ↵Enrico Granata2014-08-261-2/+0
| | | | | | time it runs.. probably leftover from when I was debugging it llvm-svn: 216502
* Added a test case to ensure lldb::SBHostOS::GetLLDBPath() doesn't return ↵Greg Clayton2014-08-251-0/+37
| | | | | | lldb::SBFileSpec objects with the filename filled in for directory paths. llvm-svn: 216399
* Use consistent capitalization for ENABLE_THREADS in testsEd Maste2014-08-131-1/+1
| | | | llvm-svn: 215565
* Get test executables compiling on Windows.Zachary Turner2014-08-1312-25/+21
| | | | | | | | | | | | | | 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 decorators for tests failing to build on the lab.llvm.org FreeBSD buildbotEd Maste2014-08-065-0/+5
| | | | | | llvm.org/pr20548 llvm-svn: 214960
* On FreeBSD skip test that produces bogus outputEd Maste2014-08-051-0/+1
| | | | | | | | | | The test produces lines that start with "<word>: " which confuses the buildbot log parser. Disable the test until either the test is fixed or the buildbot can deal with the undesired output. llvm.org/pr20545 llvm-svn: 214900
* Remove shell-globbing from all test makefiles.Zachary Turner2014-07-312-2/+2
| | | | llvm-svn: 214441
* Add decorator for TestStopHookMultipleThreads failing on FreeBSDEd Maste2014-07-311-0/+1
| | | | | | llvm.org/pr15037 llvm-svn: 214402
* Disable test on Windows. script print deadlocks on Windows.Zachary Turner2014-07-301-0/+1
| | | | llvm-svn: 214351
* Fixup TestStepNoDebug to cleanup properly on shutdown.Todd Fiala2014-07-281-1/+2
| | | | | | | | | | | This was causing core dumps on MacOSX and was not properly cleaning up the state of the inferior before exiting. The test was overriding def tearDown(), but failed to call the base class after doing its own cleanup. This essentially eliminated normal clean-up activity. llvm-svn: 214138
* We were turning off all these tests on OSX and FreeBSD because of a known ↵Jim Ingham2014-07-241-15/+28
| | | | | | | | (and fairly unimportant) bug. Keep a test for that bug, but let the useful parts of the test run anyway. llvm-svn: 213875
* Ensure that if some unspecified person were to pass in an invalid ↵Enrico Granata2014-07-233-0/+56
| | | | | | architecture when trying to create a target, that it would fail, but not cause LLDB to crash. llvm-svn: 213781
* Add kalimba architecture checking to TestImageListMultiArchitectureTodd Fiala2014-07-233-0/+9
| | | | | | | | | Verify that ObjectFileELF's kalimba detection works regardless of the host platform. Change by Matthew Gardiner. llvm-svn: 213763
* Make the test runner understand Windows command shell execution.Zachary Turner2014-07-222-2/+2
| | | | | | | | | | | | | | | | Currently, the test runner makes the assumption that it will run commands through /bin/sh. This is obviously not true on Windows, so this patch abstracts this logic out somewhat. Instead of having the caller build the command string himself, the caller will now pass in argument list of the form [[a, b], [c, d], ...] which will get converted into a string of the form a b; c d or a b && c d, depending on the platform. Reviewed by: Todd Fiala Differential Revision: http://reviews.llvm.org/D4590 llvm-svn: 213669
* Fixes a number of issue related to test portability on Windows.Zachary Turner2014-07-188-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | 99% of this CL is simply moving calls to "import pexpect" to a more narrow scope - i.e. the function that actually runs a particular test. This way the test suite can run on Windows, which doesn't have pexpect, and the individual tests that use pexpect can be disabled on a platform-specific basis. Additionally, this CL fixes a few other cases of non-portability. Notably, using "ps" to get the command line, and os.uname() to determine the architecture don't work on Windows. Finally, this also adds a stubbed out builder_win32 module. The full test suite runs correctly on Windows after this CL, although there is still some work remaining on the C++ side to fix one-shot script commands from LLDB (e.g. script print "foo"), which currently deadlock. Reviewed by: Todd Fiala Differential Revision: http://reviews.llvm.org/D4573 llvm-svn: 213343
* Flipped intermittent test failures from skip to XFAIL.Todd Fiala2014-07-102-2/+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
* Skip tests that are intermittent on Linux, fix gdb-remote port-grabbing code.Todd Fiala2014-07-092-1/+2
| | | | | | | | | | | | | Marked skipped for Linux: TestCallStopAndContinue TestConvenienceVariables TestStopHookMultipleThreads Fixed up gdb-remote port-grabbing code to use a random port in a wide range, and to allow that to fail more gracefully. This appears to have solved some gdb-remote intermittent failing behavior. llvm-svn: 212662
* Marked failing Darwin TestProcessLaunch tests as XFAILTodd Fiala2014-07-091-0/+2
| | | | | | See http://llvm.org/bugs/show_bug.cgi?id=20265 llvm-svn: 212647
* TestDataFormatterStdVector.test_with_dsym_and_run_command marked XFAIL on DarwinTodd Fiala2014-07-091-0/+1
| | | | | | See http://llvm.org/bugs/show_bug.cgi?id=20264 llvm-svn: 212646
* Disable TestDataFormatterStdMap.test_with_dsym_and_run_command on DarwinTodd Fiala2014-07-091-0/+1
| | | | | | See http://llvm.org/bugs/show_bug.cgi?id=20263 llvm-svn: 212645
* Mark failing tests in TestDataFormatterObjC on Darwin as XFAILTodd Fiala2014-07-091-0/+2
| | | | | | See http://llvm.org/bugs/show_bug.cgi?id=20260 for more details. llvm-svn: 212639
* __arm64__ and __aarch64__ #ifdef adjustmentsTodd Fiala2014-07-091-1/+1
| | | | | | | | Change by Paul Osmialowski See http://reviews.llvm.org/D4379 for details. llvm-svn: 212583
* Mark test_watchpoint_multiple_threads_with_dwarf as XFAIL on Linux/clang.Todd Fiala2014-07-071-0/+1
| | | | | | See http://llvm.org/bugs/show_bug.cgi?id=20233 for details. llvm-svn: 212491
* Mark Radar9974002DataFormatterTestCase test XFAIL on Linux.Todd Fiala2014-07-071-0/+1
| | | | | | See http://llvm.org/bugs/show_bug.cgi?id=20232 for details. llvm-svn: 212489
* Marked TestLongjmp.py tests XFAIL for Linux.Todd Fiala2014-07-071-0/+3
| | | | | | See http://llvm.org/bugs/show_bug.cgi?id=20231 llvm-svn: 212488
* Fix typos.Bruce Mitchener2014-07-011-2/+2
| | | | llvm-svn: 212132
* Updated ObjectFileELF tests to include more varaints.Todd Fiala2014-06-279-4/+14
| | | | | | | | | | | | | | | | | | Removed the distribution EXEs from FreeBSD and Ubuntu. Added a hello-world .cpp file, and compiled it for several platform/compiler variants: Ubuntu 14.04 x86_64, clang 3.5 (the ubuntu1 3.5 pre variant) Ubuntu 14.04 x86_64, gcc 4.8.2 FreeBSD 10.0 x86_64, clang 3.3 FreeBSD 10.0 x86_64, gcc 4.7.3 NetBSD 6.1 x86_64, gcc 4.5.3 I also added the NetBSD expected architecture and triple. Note I have NetBSD not appending the version info to the OS name, in contrast to FreeBSD. llvm-svn: 211954
* Fix ObjectFileELF to determine architectures independent of host.Todd Fiala2014-06-273-0/+41
| | | | | | | | | | | | | | | | | | Previously ObjectFileELF was simplifying and assuming the object file it was looking at was the same as the host architecture/triple. This would break attempts to run, say, lldb on MacOSX against lldb-gdbserver on Linux since the MacOSX lldb would say that the linux elf file was really an Apple MacOSX architecture. Chaos would ensue. This change allows the elf file to parse ELF notes for Linux, FreeBSD and NetBSD, and determine the OS appropriately from them. It also initializes the OS type from the ELF header OSABI if it is set (which it is for FreeBSD but not for Linux). Added a test with freebsd and linux images that verify that '(lldb) image list -t -A' prints out the expected architecture for each. llvm-svn: 211907
* Fix a few typos.Bruce Mitchener2014-06-271-1/+1
| | | | llvm-svn: 211851
* Switch to Darwin decorator for tests that XPASS on FreeBSDEd Maste2014-04-221-2/+2
| | | | | | | | | | | Since these tests pass on (at least some) other platforms, change the decorators to @expectedFailureDwarwin. Tested on FreeBSD with Clang 3.4 and libc++. rdar://9980907 rdar://15367233 llvm-svn: 206895
* TestPtrRef2Typedef.py change - take 2.Todd Fiala2014-04-211-2/+6
| | | | | | | | | Our build is still getting this test to fail with the presence of const in '(Foo &const) y = 0x' and '(Foo &&const) z = 0x'. This change simply changes the match substrings to ignore the portion after the final '&' and before the closing ')'. This should cover the presence (or absence) of the const qualifier. llvm-svn: 206762
* Add a comment to tests that XPASS on FreeBSDEd Maste2014-04-211-2/+2
| | | | | | | | | | | | | | Perhaps these should be @expectedFailureDarwin instead of @unittest2.expectedFailure (applying to all hosts); I'm not aware of the details in the rdars. Just add a comment for now, for the benefit of anyone investigating FreeBSD test issues in the future. rdar://9980907 rdar://15367233 llvm-svn: 206760
* Remove decorator for now-passing testEd Maste2014-04-211-1/+0
| | | | | | | | | I am not sure if this is due to an LLDB change, or the fact that FreeBSD now has Clang 3.4. llvm.org/pr19075 llvm-svn: 206757
OpenPOWER on IntegriCloud