summaryrefslogtreecommitdiffstats
path: root/lldb/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [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-187-11/+11
| | | | | | No functional change. llvm-svn: 239995
* Add a test for expression evaluation while inferior is blocked in a syscallPavel Labath2015-06-173-0/+106
| | | | | | | | | | | | | | Summary: The test is XFAILed for Linux x86_64 and i386 because of bug #23659. Test Plan: NFC Reviewers: tberghammer Subscribers: lldb-commits, emaste Differential Revision: http://reviews.llvm.org/D10519 llvm-svn: 239973
* Add negative test for target.move-to-nearest-code=off using source locationDawn Perchik2015-06-171-4/+12
| | | | | | | | Test Plan: ./dotest.py --executable lldb -f MiBreakTestCase.test_lldbmi_break_insert_settings Reviewed By: clayborg, abidh Differential Revision: http://reviews.llvm.org/D10486 llvm-svn: 239968
* [TestLoadUnload] Enable for Android while skipping it for other remotes.Siva Chandra2015-06-174-41/+112
| | | | | | | | | | | | | | | | | | 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
* Clear the "thread-format" setting after mucking with it.Greg Clayton2015-06-161-0/+1
| | | | llvm-svn: 239863
* Fix compile error in TestCxxWCharT on LinuxTamas Berghammer2015-06-161-0/+2
| | | | llvm-svn: 239830
* Add a formatter for wchar_t[N] arraysEnrico Granata2015-06-152-0/+5
| | | | | | rdar://21299888 llvm-svn: 239777
* Mark TestMultithreaded as XTIMEOUT on Linux.Oleksiy Vyalov2015-06-101-0/+1
| | | | llvm-svn: 239450
* XFail pexpect tests for Windows hosts.Chaoren Lin2015-06-096-35/+44
| | | | | | | | | | 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-082-0/+15
| | | | | | | | | | | | | | 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
* [LLDB-MI] Properly detect missing mandatory arguments to MI commandsBruce Mitchener2015-06-082-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Previously if an MI command had **X** mandatory and **Y** optional arguments you could provide **X** or more optional arguments without providing any of the mandatory arguments, and the argument validation code wouldn't complain. For example this would pass argument validation even though the mandatory **address** and **count** arguments are missing: -data-read-memory-bytes --thread 1 --frame 0 Part of the problem was that an empty string was considered a valid value for a mandatory argument, which didn't make much sense. Patch by Vadim Macagon. Thanks! Test Plan: ./dotest.py -A x86_64 -C clang --executable $BUILDDIR/bin/lldb tools/lldb-mi/ No unexpected failures on my Ubuntu 14.10 64bit Virtualbox VM. Reviewers: domipheus, ki.stfu, abidh Reviewed By: ki.stfu, abidh Subscribers: brucem, lldb-commits Differential Revision: http://reviews.llvm.org/D10299 llvm-svn: 239297
* Update dosep to display dotest command invoked on failure.Chaoren Lin2015-06-071-5/+6
| | | | llvm-svn: 239258
* 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-068-12/+15
| | | | | | | | | | | | | | 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
* Update TestGdbRemoteAbort and TestGdbRemoteSegFault to use `get_signal_number`.Chaoren Lin2015-06-062-2/+3
| | | | | | | | | | | | Reviewers: clayborg, ovyalov Reviewed By: ovyalov Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10286 llvm-svn: 239201
* Unique file names for TestStarted and TestFinished.Chaoren Lin2015-06-051-2/+2
| | | | | | | | | | | | Summary: This fixes the issue of multiple test suites opening the same file for writing. Reviewers: clayborg, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10284 llvm-svn: 239188
* [TestGdbRemoteAbort] Skip on API 16 Android devicesSiva Chandra2015-06-054-17/+31
| | | | | | | | | | | | | | | | 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
* [lldbtest] Use netloc instead of hostname to look up Android device ID.Siva Chandra2015-06-051-5/+7
| | | | | | | | | | | | | | | | | | | | | Summary: urlparse.ParseResult.hostname has only lowercase characters even if the input URL had uppercase characters. Since Android device IDs can have uppercase characters as well, use urlparse.ParseResult.netloc instead and extract the device ID from it. This change also improves the error message when lookup of the Android device's API fails. Reviewers: chaoren Reviewed By: chaoren Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10278 llvm-svn: 239173
* Check before using platform specific attributes.Chaoren Lin2015-06-052-3/+6
| | | | | | | | | | | | 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-052-2/+44
| | | | | | | | | | | | | | | | | | 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
* [TestGdbRemoteRegisterState] Do not flip ARM *psr register in the testSiva Chandra2015-06-041-0/+3
| | | | | | | | | | | | | | | | | | Summary: Not all of that register is readable/writable in user mode. This means that even if the inferior is stopped, parts of the register could be changing. So, do not flip this register to check if its value can be restored. Reviewers: tberghammer, chaoren Reviewed By: tberghammer Subscribers: rengolin, aemerson, lldb-commits Differential Revision: http://reviews.llvm.org/D10204 llvm-svn: 239104
* 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
* Fixed "format-string" based settings so they can have quotes on them without ↵Greg Clayton2015-06-031-0/+8
| | | | | | | | | | | | | | leaving the quotes in the format string: (lldb) settings set thread-format "abc" (lldb) settings set thread-format 'abc' (lldb) settings set thread-format abc We strip the quotes before processing the format string and return an "error: mismatched quotes" if mismatched quotes are given. <rdar://problem/21210789> llvm-svn: 238896
* 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
* Fixed the logic to determine the TRIPLE_VERSION correctly when it isn't ↵Greg Clayton2015-06-021-4/+6
| | | | | | specified. llvm-svn: 238871
* Added the ability for the "make" command to take a triple:Greg Clayton2015-06-021-3/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | % cd lldb/test/lang/c/array_types % make TRIPLE=x86_64-apple-ios % make clean % make TRIPLE=x86_64-apple-ios8.1 % make clean % make TRIPLE=armv7-apple-ios % make clean % make TRIPLE=armv7-apple-ios8.1 % make clean The TRIPLE variable will automatically set the following variables: SDKROOT if it isn't specified manually ARCH will be set to the architecture from the triple CFLAGS will include the extras needed for the triple which are set in TRIPLE_CFLAGS TRIPLE_VENDOR set to the triple vendor ("apple" in the above cases) TRIPLE_OS set to the triple OS ("ios" in the above cases) TRIPLE_VERSION set to the version that was specified, or automatically set to the SDK version if it is missing This allows you to change directory into any test case on MacOSX and quickly build for desktop: % make iOS simulator: % make TRIPLE=x86_64-apple-ios or iOS device: % make TRIPLE=armv7-apple-ios llvm-svn: 238869
* Use wildcard instead of relying on shell globbing.Chaoren Lin2015-06-022-3/+2
| | | | | | | | | | Reviewers: clayborg, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10194 llvm-svn: 238859
* Check that debugger is valid before enumerating targets.Chaoren Lin2015-06-021-13/+14
| | | | | | | | | | Reviewers: sivachandra Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10192 llvm-svn: 238857
* TestGlobalVariables no longer fails on FreeBSDEd Maste2015-06-021-1/+0
| | | | | | | | It has passed since ~ r223393. llvm.org/21599 llvm-svn: 238856
* Use new get_signal_number utility function for tests.Chaoren Lin2015-06-023-9/+11
| | | | | | | | | | | | | | | | 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
* Added utility function to get correct signal number from remote platform.Chaoren Lin2015-06-021-0/+41
| | | | | | | | | | | | | | | | | Summary: This change adds a utility that uses the `kill -l` command to get the correct signal number. Falls back to using `SBUnixSignals`, and finally `signal.SIG<signal>` if all else fails. Reviewers: tberghammer, clayborg, ovyalov Reviewed By: clayborg, ovyalov Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10171 llvm-svn: 238850
* Fix OBJCOPY and AR for Android.Chaoren Lin2015-06-021-8/+12
| | | | | | | | | | | | | | Summary: Previously, OBJCOPY was empty because of the missing comma, and ar was just `ar`. Reviewers: ovyalov, tberghammer Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10175 llvm-svn: 238849
* Mark TestHelloWorld as XTIMEOUT for LinuxTamas Berghammer2015-06-021-0/+1
| | | | | | It is times out on the build bot ~10% of the times llvm-svn: 238836
* 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
* Un-enable TestEvents test on linuxPavel Labath2015-06-021-0/+2
| | | | | | Test still seems to fail about 1/10 runs. Skipping the test, but it a more greppable fashion. llvm-svn: 238826
* Enable TestEvents test on linuxPavel Labath2015-06-021-1/+0
| | | | | | | This test was very inconspicuosly skipped on linux, when it was crashing for local debugging. It seems to work fine with LLGS, so I'm enabling it. llvm-svn: 238816
* Fix TestJoinAfterBreak test on WindowsAdrian McCarthy2015-06-013-41/+23
| | | | llvm-svn: 238787
* Dump error if dotest itself fails and no tests were run.Chaoren Lin2015-06-011-3/+5
| | | | | | | | | | Reviewers: zturner, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10163 llvm-svn: 238771
* Updated dosep.py to output progress and dump std{out,err} on test failure.Chaoren Lin2015-06-011-3/+36
| | | | | | | | | | Reviewers: vharron, clayborg, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10143 llvm-svn: 238765
* 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
* Improve test for g++ 4.6Ed Maste2015-05-291-2/+4
| | | | | | | | | | | | | Skip the g++ 4.6 test if we're not going to build any C++ source. If a test has C++ source files we automatically determine which C++ compiler to use based on $CC (for example, clang++ if CC=clang). However, this is not done for tests without C++ source and CXX will be GNU make's default of g++. This produces suprious "g++: not found" errors in testrun output on systems without a gcc/g++. Differential Revision: http://reviews.llvm.org/D10122 llvm-svn: 238603
* 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
* Fix hanging test suite when dosep.py is invoked directly.Chaoren Lin2015-05-291-2/+7
| | | | | | | | | | Reviewers: zturner, sivachandra Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10134 llvm-svn: 238594
OpenPOWER on IntegriCloud