summaryrefslogtreecommitdiffstats
path: root/lldb/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Added two new test types: @debugserver_test and @llgs_test.Todd Fiala2014-04-284-38/+157
| | | | | | | | | | | | | | | TestLldbGdbServer now supports both lldb-gdbserver (llgs) and debugserver tests. Similar to the dsym/dwarf tests, they allow running the same underlying gdb remote protocol tests against lldb-gdbserver and debugserver. This will help make sure the protocol-level tests for lldb-gdbserver faithfully represent what debugserver does on OS X. Switched back gdb remote protocol test logging to warning and above (accidentally submitted it at debug level in a recent commit). llvm-svn: 207395
* Added TestLldbGdbServer test for A start exe packet.Todd Fiala2014-04-254-4/+58
| | | | | | Fixed up bug in XFAIL tests where I appended an array when I intended to merge an array. llvm-svn: 207285
* Prevent TestLldbGdbServer shutdown cleanup failures from failing the test.Todd Fiala2014-04-251-4/+17
| | | | | | | | | | Adds try/except blocks around clean-up code. Prevents a race between gdb remote kill command reception by llgs (which leads llgs to shut down) and the pexpect server kill (which can fail if the kill command handling completes first). Warnings are emitted on the logger for any clean-up code that fails. llvm-svn: 207273
* Modify TestSettings test for stderr.txt/stdout.txt to ignore anTodd Fiala2014-04-251-2/+2
| | | | | | | | | | | optional path prior to the file base name. On Linux x86_64 (Ubuntu 12.04) I am sometimes getting a full path on the stderr.txt. This changes the test for target.error-path and target.output-path settings to ignore any optional directory before the expected file base name. llvm-svn: 207272
* Add a new SBThread::GetQueue() method to get the queue that is Jason Molenda2014-04-251-0/+1
| | | | | | | | | | currently associated with a given thread, on relevant targets. Change the queue detection code to verify that the queues associated with all live threads are included in the list. <rdar://problem/16411314> llvm-svn: 207160
* Remove duplication in expectedFailure* decoratorsEd Maste2014-04-231-269/+42
| | | | | | Differential Revision: http://reviews.llvm.org/D3452 llvm-svn: 206976
* Added a packet-playback test facility for lldb-gdbserver and a few starter ↵Todd Fiala2014-04-222-10/+272
| | | | | | | | | | | | | | | | | | | | | | | tests. lldbgdbserverutils.py has a new expect_lldb_gdbserver_replay() method that plays back gdb remote send/receive packets. These packets are the log lines that come from running the 'log enable gdb-remote packets', either from the lldb-gdbserver side or the lldb side. There's a flag to flip which side is the send (lldb-gdbserver input or lldb-gdbserver output). This first checkin tests the initial gdbremote handshake, the ability to turn on the no-ack mode communication style, thread suffix support, and list threads in stop reply support. The last two are marked xfail as top of tree does not yet support these. --This line, and those below, will be ignored-- M test/tools/lldb-gdbserver/TestLldbGdbServer.py M test/tools/lldb-gdbserver/lldbgdbserverutils.py llvm-svn: 206930
* Switch to Darwin decorator for tests that XPASS on FreeBSDEd Maste2014-04-222-3/+3
| | | | | | | | | | | 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
* Remove decorator for now-passing testEd Maste2014-04-211-1/+0
| | | | | | | | | | The underlying issue was actually a Clang bug, now fixed. The test now reports XPASS for me locally and on the buildbot. llvm.org/pr17183 (LLDB) llvm.org/pr18950 (Clang) llvm-svn: 206761
* Add a comment to tests that XPASS on FreeBSDEd Maste2014-04-212-3/+3
| | | | | | | | | | | | | | 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
* Revert "Fix TestPtrRef2Typedef with new const adornment on expected ref type."Ed Maste2014-04-211-2/+2
| | | | | | | | | | The additional "const" breaks the FreeBSD buildbot, and does not appear to be due to a LLVM or Clang change. Revert the change while investigating further. This reverts revision 206619. llvm-svn: 206751
* Added a basic connection test for lldb-gdbserver.Todd Fiala2014-04-212-0/+65
| | | | | | The lldb-gdbserver tests are skipped if the lldb-gdbserver exe cannot be found (currently only built for Linux and FreeBSD). The lldb-gdbserver exe is found by the LLDB_EXEC environment variable, using the same dir as the lldb exe, and then replacing lldb with lldb-gdbserver. llvm-svn: 206731
* Marked TestAttachResume.process_attach_continue_interrupt_detach() as XFAIL ↵Todd Fiala2014-04-181-0/+1
| | | | | | on Linux per pr19478. llvm-svn: 206620
* Fix TestPtrRef2Typedef with new const adornment on expected ref type.Todd Fiala2014-04-181-2/+2
| | | | llvm-svn: 206619
* <rdar://problem/12055586>Enrico Granata2014-04-103-0/+94
| | | | | | | | Enable data formatters to see-through pointers/references to typedefs For instance, if Foo is a typedef to Bar, and there is a formatter for any/all of Bar*, Bar&, Bar&&, then Foo*, Foo&, and Foo&& should pick these up if Foo-specific formatters don't exist llvm-svn: 205939
* Do not rely on invalid pthread API use in thread testEd Maste2014-04-092-24/+22
| | | | | | | | | | Calling mutex_lock from one thread and then mutex_unlock from another is not permitted. Replace the awkward mutex usage with a mutex and condition variable. llvm.org/pr18061 llvm-svn: 205900
* Correct typo: waychpoint -> watchpointEd Maste2014-04-071-1/+1
| | | | llvm-svn: 205719
* Add decorator for FreeBSD DynamicValueTestCase failureEd Maste2014-04-071-0/+1
| | | | | | | Not yet root-caused, but I presume it is the same issue that affects Linux. llvm-svn: 205712
* Add failure decoratorsEd Maste2014-04-041-0/+2
| | | | | | | | | These tests started failing on FreeBSD after r205497 "Make the fail messages" llvm.org/pr19347 llvm-svn: 205652
* Make the fail messagesJim Ingham2014-04-032-2/+3
| | | | llvm-svn: 205497
* Print the new eStopReasonExec in stop_reason_to_str.Jim Ingham2014-04-031-0/+2
| | | | llvm-svn: 205496
* I removed SetCallback from the Python API's since it wasn't actually useful, ↵Jim Ingham2014-04-031-1/+2
| | | | | | | | and added SetScriptCallbackFunction, and SetScriptCallbackBody. So add these to the default constructor test case. llvm-svn: 205494
* Add decorator for pr19311 on FreeBSDEd Maste2014-04-021-0/+1
| | | | | | | A breakpoint at the resume address for "continue" is skipped. This is presumably the root cause for the Linux failure as well. llvm-svn: 205482
* rdar://16424649Enrico Granata2014-04-025-60/+135
| | | | | | | | Clean up the DynamicValueTestCase Namely, I split off the part of the test that validates child counts to a separate test llvm-svn: 205450
* Add annotation for failure from new Attach/Resume test case on FreeBSDEd Maste2014-04-021-0/+1
| | | | llvm-svn: 205427
* Use getpgid() with waitpid() in case the process pgid is not equal to its ↵Andrew MacPherson2014-04-023-0/+135
| | | | | | pid, as is the case with a forked subprocess. Also a couple of fixes for unit test failures from Todd Fiala. llvm-svn: 205405
* Test case for the previous commit.Jim Ingham2014-04-021-0/+88
| | | | llvm-svn: 205381
* Use continue instead of nextEnrico Granata2014-04-011-1/+1
| | | | llvm-svn: 205354
* Use libc++ on FreeBSD as on DarwinEd Maste2014-04-011-2/+11
| | | | llvm-svn: 205345
* Add errno import missed in r205246Ed Maste2014-04-011-0/+1
| | | | llvm-svn: 205306
* Workaround test trace output dir creation race conditionEd Maste2014-03-311-1/+5
| | | | | | | | Since dosep.ty started invoking multiple tests in parallel, the FreeBSD buildbot occasionally has a failure due to os.mkdir returning EEXIST. Silently ignore that exception, but reraise any other. llvm-svn: 205246
* lldb arm64 import.Jason Molenda2014-03-291-1/+1
| | | | | | | | | | | | | | | | These changes were written by Greg Clayton, Jim Ingham, Jason Molenda. It builds cleanly against TOT llvm with xcodebuild. I updated the cmake files by visual inspection but did not try a build. I haven't built these sources on any non-Mac platforms - I don't think this patch adds any code that requires darwin, but please let me know if I missed something. In debugserver, MachProcess.cpp and MachTask.cpp were renamed to MachProcess.mm and MachTask.mm as they picked up some new Objective-C code needed to launch processes when running on iOS. llvm-svn: 205113
* Add the ability from the SB API's to set the "one thread" timeoutJim Ingham2014-03-281-0/+10
| | | | | | | | for expression evaluations that try one and then all threads. <rdar://problem/15598528> llvm-svn: 205060
* Remove annotation for llvm.org/pr19241Ed Maste2014-03-261-1/+0
| | | | | | The issue has been fixed by r204745 and r204750 llvm-svn: 204779
* Add a test case for the previous commitEnrico Granata2014-03-253-0/+83
| | | | llvm-svn: 204763
* Make sure this test has a looser dependency on the exact class generated ↵Enrico Granata2014-03-251-1/+1
| | | | | | here.. it is going to be some sort of NS-provided String, but let's not bet on the details llvm-svn: 204761
* Fixed up intermittently failing tests to skip on Linux.Todd Fiala2014-03-254-1/+8
| | | | | | | | | | | Also added 'import sys' on some tests that are using non-standard unittest2.skipUnless blocks with code that is intended to do things that we have more specializes @* attributes for. These skip conditions were failing to execute due to missing import, causing darwin-only tests to run on Linux regardless. Will file a bug for that separately. llvm-svn: 204747
* Update 'running threaded' messages after option parsing changeEd Maste2014-03-251-4/+2
| | | | | | | | | | | | "Running multithreaded with n threads (from LLDB_TEST_THREADS)" is incorrect in the common case, because the thread count is now obtained from a --threads option, or a default of multiprocessing.cpu_count(). I left the messages in for now as there are some intermittent issues that happen while running tests multithreaded and it may help in triaging those. We may wish to just remove them later on. llvm-svn: 204725
* Add expected failure annotation for llvm.org/pr19241Ed Maste2014-03-251-0/+1
| | | | llvm-svn: 204718
* Add a "--threads N" option instead of having to use an environment variable. ↵Greg Clayton2014-03-241-6/+15
| | | | | | It also now defaults to running with the number of CPUs on the machine. llvm-svn: 204681
* Add annotation for test failure due to clang 3.4Ed Maste2014-03-241-0/+1
| | | | | | | | | | FreeBSD recently updated to Clang 3.4 and the TestFormatters test case started failing as it omits the C1 complete object constructor when not needed. llvm.org/pr19011 llvm-svn: 204652
* Adapt test to avoid short string types.Jim Ingham2014-03-201-9/+9
| | | | llvm-svn: 204295
* More recent compilers emit debug info for the length property of NSString, ↵Jim Ingham2014-03-201-1/+1
| | | | | | | | so the length will be correctly reported as NSUInteger. Adopt the test case to handle either possibility. llvm-svn: 204288
* expectedFailureDarwin for this test case.Jim Ingham2014-03-201-0/+2
| | | | llvm-svn: 204287
* I changed the logging test to just test that logging doesn't crash and does ↵Jim Ingham2014-03-191-47/+2
| | | | | | | | produce output. That's about all it is useful to test. llvm-svn: 204284
* These logging tests depend on the exact output of lldb logging, which is brittleJim Ingham2014-03-191-0/+2
| | | | | | | and not particularly useful. Skipping till we get a chance to make a test that actually tests something we care about. llvm-svn: 204283
* Remember to run ranlib after ar to make useful archive files.Jim Ingham2014-03-191-0/+2
| | | | llvm-svn: 204282
* Remove unnecessary dependence on vecLib.Jim Ingham2014-03-192-2/+1
| | | | llvm-svn: 204281
OpenPOWER on IntegriCloud