summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove shell-specific code from TestLoadUnload Makefile.Chaoren Lin2015-07-151-5/+7
| | | | | | | | | | Reviewers: clayborg, sivachandra Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11202 llvm-svn: 242332
* Try to enable TestProcessAttach tests on Linux.Oleksiy Vyalov2015-07-081-6/+0
| | | | | | http://reviews.llvm.org/D11013 llvm-svn: 241702
* Windows doesn't have fork.Adrian McCarthy2015-07-071-0/+1
| | | | llvm-svn: 241640
* Add a summary for vector typesEnrico Granata2015-07-071-2/+3
| | | | | | | | | | | | The summary is - quite simply - a one-line printout of the vector elements We still need synthetic children: a) as a source of the elements to print in the summary b) for graphical IDEs that display structure regardless of the summary settings rdar://5429347 llvm-svn: 241531
* Normalize line endings.Adrian McCarthy2015-07-061-78/+78
| | | | llvm-svn: 241507
* Fix step over breakpoint on Windows (which was detected by ↵Adrian McCarthy2015-07-063-100/+100
| | | | | | TestCreateAfterAttach.py). llvm-svn: 241475
* Make TestStopHook* remote platform compatibleTamas Berghammer2015-07-062-2/+24
| | | | llvm-svn: 241436
* Make TestDisassembleBreakpoint arm and aarch64 compatibleTamas Berghammer2015-07-031-8/+12
| | | | llvm-svn: 241338
* Remove outdated comment.Chaoren Lin2015-07-021-1/+0
| | | | llvm-svn: 241276
* Change executable name to a.out.Chaoren Lin2015-07-021-1/+1
| | | | | | | | | | | | Summary: The long name causes problems with some shells. Reviewers: sivachandra Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10888 llvm-svn: 241222
* Reversed r238363, because the message is inconsistentSean Callanan2015-07-0197-148/+148
| | | | | | with all the other assertion messages. llvm-svn: 241212
* Ignore "push/pop {sp}" in emulation based unwindingTamas Berghammer2015-06-302-2/+15
| | | | | | | | | | | These instructions confusing the unwind code because in case of a push it assumes that the original valu of a register is pushed to the stack what is not neccessarily true in case of SP. The same is true for the pop (in the opposite way). Differential revision: http://reviews.llvm.org/D10806 llvm-svn: 241051
* Mark AttachResumeTestCase as flakyTamas Berghammer2015-06-291-0/+1
| | | | llvm-svn: 240962
* Correct failure decorator in test_fd_leak_multitargetEd Maste2015-06-291-1/+1
| | | | | | | | | | | | | | The random module in Python 2.7.8 and later leaks /dev/[u]random into children. The test is expected to fail, not be flakey. This will be fixed in Python 2.7.10 for some operating systems, but not all e.g. OS X 10.4. llvm.org/pr23983 bugs.freebsd.org/197376 bugs.python.org/issue23458 llvm-svn: 240958
* Added expectedFlakey test decoratorVince Harron2015-06-267-7/+10
| | | | | | | | | | | | | | | | | SUMMARY Flakey tests get two chances to pass Also, switched a bunch of tests to use new decorator. TEST PLAN Add one of these decorators to a test Edit a test to pass on the first invocation, confirm test appears as pass Edit a test to pass on the first invocation, pass on the second, confirm test appears as xfail Edit a test to fail on two consecutive runs, confirm test appears in results as fail/error Differential Revision: http://reviews.llvm.org/D10721 llvm-svn: 240789
* Add branch emulation to aarch64 instruction emulatorTamas Berghammer2015-06-261-0/+12
| | | | | | | | | The emulation of the branches are required by the new stack unwinding logic to reinstantiate the prologue at the right place. Differential revision: http://reviews.llvm.org/D10702 llvm-svn: 240769
* Enable TestInferiorCrashing and TestRecursiveInferior on androidPavel Labath2015-06-252-2/+5
| | | | | | | | | | | | | | | | | Summary: the original bug was fixed (a rogue breakpoint messing up inferior data structures) and the tests seems to pass now. Since android has a default SEGV handler, I have had to alter the test expectation in this case. Test Plan: Tests pass on android arm. Reviewers: tberghammer Subscribers: tberghammer, aemerson, lldb-commits Differential Revision: http://reviews.llvm.org/D10733 llvm-svn: 240638
* Remove XFAIL from TestCreateAfterAttachPavel Labath2015-06-251-3/+0
| | | | | | | The tested functionality is implemented now. The test remains XTIMEOUTed, because it times out occasionally, probably due to test suite deficiencies. llvm-svn: 240632
* Remove xfail for TestDisassembleBreakpoint.Chaoren Lin2015-06-241-1/+0
| | | | | | LLGS no longer returns trap code in memory. llvm-svn: 240551
* Remove old local-only linux debugging codePavel Labath2015-06-247-11/+11
| | | | | | | | | | | | | | | | | | | | Summary: Currently, the local-only path fails about 50% of the tests, which means that: a) nobody is using it; and b) the remote debugging path is much more stable. This commit removes the local-only linux debugging code (ProcessLinux) and makes remote-loopback the only way to debug local applications (the same architecture as OSX). The ProcessPOSIX code is moved to the FreeBSD directory, which is now the only user of this class. Hopefully, FreeBSD will soon move to the new architecture as well and then this code can be removed completely. Test Plan: Test suite passes via remote stub. Reviewers: emaste, vharron, ovyalov, clayborg Subscribers: tberghammer, emaste, lldb-commits Differential Revision: http://reviews.llvm.org/D10661 llvm-svn: 240543
* [TestLoadUnload] Build the main inferior exe with -pie.Siva Chandra2015-06-181-1/+1
| | | | | | | | | | | | Test Plan: dotest.py -p TestLoadUnload on Android API >= 21 Reviewers: tberghammer Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10545 llvm-svn: 240048
* Add new test for stress testing stack unwindingTamas Berghammer2015-06-184-0/+172
| | | | | | | | This test case generates new tests from the source files dropped into its directory. For stress testing stack unwinding it steps through the code line by line and then tests unwinding from each instruction. llvm-svn: 240030
* Fix a variety of typos.Bruce Mitchener2015-06-184-4/+4
| | | | | | No functional change. llvm-svn: 239995
* [TestLoadUnload] Enable for Android while skipping it for other remotes.Siva Chandra2015-06-173-41/+90
| | | | | | | | | | | | | | | | | | Summary: This change adds all the necessary infrastructure required to selectively enable and make TestLoadUnload work for Android. One test, which tests the module search paths, is still kept disabled for remote as search paths (because of module caching) are local anyway. Reviewers: tberghammer Reviewed By: tberghammer Subscribers: emaste, lldb-commits, tberghammer Differential Revision: http://reviews.llvm.org/D10469 llvm-svn: 239965
* Revert r239873 - I actually want to think some more about thisEnrico Granata2015-06-172-4/+0
| | | | llvm-svn: 239874
* Fix an issue where the oneliner printing of variables would ignore custom ↵Enrico Granata2015-06-172-0/+4
| | | | | | | | | | | formatting Because vector types use their formats in special ways (i.e. children get generated based on them), this change by itself would cause a regression in printing vector types with some custom formats Work around that issue by special casing vector types out of this format-passdown mode. I believe there is a more general feature to be designed in this space, but until I see more cases of interest, I am going to leave this as a special case Fixes rdar://20810062 llvm-svn: 239873
* XFail pexpect tests for Windows hosts.Chaoren Lin2015-06-094-34/+34
| | | | | | | | | | Reviewers: vharron, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10340 llvm-svn: 239414
* Skip TestInferiorChanged if host platform is windows.Chaoren Lin2015-06-081-0/+1
| | | | | | | | | | | | | | Summary: Opened files on Windows cannot be modified, so this test doesn't make sense. Reviewers: ovyalov, zturner, flackr, clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10295 llvm-svn: 239359
* Use skipIf instead of skipUnless in TestTerminal for better readability.Chaoren Lin2015-06-061-1/+1
| | | | llvm-svn: 239220
* Fix TestAttachDenied and TestChangeProcessGroup for remote Windows to Android.Chaoren Lin2015-06-062-4/+4
| | | | | | | | | | | | | | Summary: Updated `append_to_remote_wd` to work for both remote and local. Reviewers: clayborg, ovyalov Reviewed By: ovyalov Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10288 llvm-svn: 239203
* [TestGdbRemoteAbort] Skip on API 16 Android devicesSiva Chandra2015-06-052-4/+4
| | | | | | | | | | | | | | | | Summary: This change also adds the infrastructure required to specify the API levels for which tests should be skipped. Reviewers: chying, labath Reviewed By: labath Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10282 llvm-svn: 239183
* Check before using platform specific attributes.Chaoren Lin2015-06-051-1/+2
| | | | | | | | | | | | Summary: `os.uname` in TestUniversal and `os.geteuid` in TestTerminal. Reviewers: clayborg, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10202 llvm-svn: 239135
* [TestChangeProcessGroup] Mark the test as xfail for Android API 16Siva Chandra2015-06-051-0/+1
| | | | | | | | | | | | | | | | | | Summary: This change adds the infrastructure to mark tests as xfail for specific Android API levels. Test Plan: dotest.py TestChangeProcessGroup on an Android API 16 device. Reviewers: chying, labath, chaoren Reviewed By: labath, chaoren Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10261 llvm-svn: 239126
* Skip test failing on FreeBSD buildbot due to pexepect issuesEd Maste2015-06-031-0/+1
| | | | | | | | | The pexpect exception is not handled by expectedFailureFreeBSD, so just skip the test for now. llvm.org/pr22784 llvm-svn: 238977
* XFAIL TestPlatformCommand test failing on the FreeBSD buildbotEd Maste2015-06-031-0/+1
| | | | | | llvm.org/pr23747 llvm-svn: 238976
* Fix a bug where trying to Dump() a ValueObject would use the ↵Enrico Granata2015-06-033-0/+50
| | | | | | | | | | static/non-synthetic version of the value even if the ValueObject one actually called Dump() on turned out to be dynamic and/or synthetic This was of course overridable by using DumpValueObjectOptions, but the default should be saner and the previous behavior made for a few fun investigations.... rdar://problem/21065149 llvm-svn: 238961
* Update TestConcurrentEvents to use UnixSignals instead of python signals.Chaoren Lin2015-06-021-8/+4
| | | | | | | | | | | | Reviewers: clayborg, ovyalov Reviewed By: ovyalov Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10195 llvm-svn: 238872
* Use wildcard instead of relying on shell globbing.Chaoren Lin2015-06-021-2/+1
| | | | | | | | | | Reviewers: clayborg, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10194 llvm-svn: 238859
* Use new get_signal_number utility function for tests.Chaoren Lin2015-06-021-2/+3
| | | | | | | | | | | | | | | | Summary: This fixes TestLldbGdbServer and TestSendSignal from Windows to Android. This change depends on D10171. Reviewers: clayborg, ovyalov Reviewed By: clayborg, ovyalov Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10172 llvm-svn: 238852
* Skip TestChangeProcessGroup on FreeBSD for nowEd Maste2015-06-021-0/+1
| | | | | | | | | It consistently times out. The test is already XTIMEOUT'd, but causes tests to take an extra 5 minutes waiting for the timeout to expire. llvm.org/pr23731 llvm-svn: 238833
* Fix TestJoinAfterBreak test on WindowsAdrian McCarthy2015-06-013-41/+23
| | | | llvm-svn: 238787
* XFAIL additional signal vs exception tests failing on FreeBSDEd Maste2015-05-293-1/+3
| | | | | | | | We need to apply to FreeBSD a change equivalent to r238549. llvm.org/pr23699 llvm-svn: 238616
* XFAIL TestHandleSegv on FreeBSDEd Maste2015-05-291-0/+1
| | | | | | | | We need to apply to FreeBSD a change equivalent to r238549. llvm.org/pr23699 llvm-svn: 238615
* TestHandleSegv: also assert that we have a threadEd Maste2015-05-291-1/+1
| | | | | | | | | | If get_stopped_thread(... eStopReasonSignal) returns no thread, the thread.IsValid assertion would throw AttributeError: 'NoneType' object has no attribute 'IsValid'. Differential Revision: http://reviews.llvm.org/D10123 llvm-svn: 238600
* XFAIL two tests for androidPavel Labath2015-05-292-0/+2
| | | | | | bug #23694 llvm-svn: 238558
* Report inferior SIGSEGV as a signal instead of an exception on linuxPavel Labath2015-05-297-65/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Previously, we reported inferior receiving SIGSEGV (or SIGILL, SIGFPE, SIGBUS) as an "exception" to LLDB, presumably to match OSX behaviour. Beside the fact that we were basically lying to the user, this was also causing problems with inferiors which handle SIGSEGV by themselves, since LLDB was unable to reinject this signal back into the inferior. This commit changes LLGS to report SIGSEGV as a signal. This has necessitated some changes in the test-suite, which had previously used eStopReasonException to locate threads that crashed. Now it uses platform-specific logic, which in the case of linux searches for eStopReasonSignaled with signal=SIGSEGV. I have also added the ability to set the description of StopInfoUnixSignal using the description field of the gdb-remote packet. The linux stub uses this to display additional information about the segfault (invalid address, address access protected, etc.). Test Plan: All tests pass on linux and osx. Reviewers: ovyalov, clayborg, emaste Subscribers: emaste, lldb-commits Differential Revision: http://reviews.llvm.org/D10057 llvm-svn: 238549
* Simplify regex in TestDataFormatterUnordered.py for better readability.Chaoren Lin2015-05-281-6/+22
| | | | | | | | | | | | | | | | | | Summary: Using `(match){3}` instead of `matchmatchmatch`. This is an update to D10078. Test Plan: no change in test behavior. Reviewers: clayborg, sivachandra Reviewed By: sivachandra Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10094 llvm-svn: 238510
* Skip ThreadStateTestCase.test_state_after_continue_with_dwarf on DarwinYing Chen2015-05-281-0/+6
| | | | | | | | | | | | | | | | Summary: - This test cause Python crash randomly on darwin builder - Tracked by bug 'llvm.org/pr23669' Test Plan: ./dotest.py -m --executable /Users/lldb_build/testSlave/buildDir/lldb.src/build/Debug/lldb --framework /Users/lldb_build/testSlave/buildDir/lldb.src/build/Debug/LLDB.framework -A x86_64 -C clang -p TestThreadStates.py Reviewers: chaoren, vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10053 llvm-svn: 238495
* Add a comment explaining the eCommandRequiresTarget testEd Maste2015-05-281-0/+2
| | | | | | llvm.org/pr23686 llvm-svn: 238438
* Revert r238425, it undoes the purpose of the testEd Maste2015-05-281-7/+3
| | | | | | llvm.org/pr23686 llvm-svn: 238437
OpenPOWER on IntegriCloud