summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
Commit message (Collapse)AuthorAgeFilesLines
* mark TestGlobalVariables.py as XFAIL on OS X dwarf.Todd Fiala2015-12-181-4/+2
| | | | | | | tracking bug: https://llvm.org/bugs/show_bug.cgi?id=25872 llvm-svn: 256006
* Revert "Disable test reruns on arm unless explicitly marked with ↵Todd Fiala2015-12-171-7/+2
| | | | | | | | | | | | | --rerun-all-issues" and Revert "prevent rerun logic from kicking in on test runs including aarch64." This reverts commits: r255719 r255747 llvm-svn: 255935
* ResultsFormatter: always lock on handle_event()Todd Fiala2015-12-171-92/+91
| | | | | | | Some of the newer structures were not protected. Now that we have a recursive lock, we just lock the whole handle_event() call. llvm-svn: 255917
* Inspect DW_AT_const_value global static const variablesEwan Crawford2015-12-172-1/+3
| | | | | | | | | | | | This patch adds support for printing global static const variables which are given a DW_AT_const_value DWARF tag by clang. Fix for bug https://llvm.org/bugs/show_bug.cgi?id=25653 Reviewers: clayborg, tberghammer Subscribers: emaste, lldb-commits Differential Revision: http://reviews.llvm.org/D15576 llvm-svn: 255887
* XFAIL some tests failing for Windows -> AndroidTamas Berghammer2015-12-172-0/+2
| | | | llvm-svn: 255885
* test infra: force rerun to use parallel runnerTodd Fiala2015-12-171-1/+5
| | | | | | | | | | | We've now seen the rerun test phase hang in a few scenarios. Eliminate the serial test runner (which is not exercised nearly as much as the others), by using a multi-worker test runner strategy with a single worker. This should rule out whether this is related to the serial test runner strategy. llvm-svn: 255880
* [test] Add ability to expect timeoutsPavel Labath2015-12-164-1/+51
| | | | | | | | | | | | | | | | | Summary: This adds ability to mark test that do not complete due to hangs, crashes, etc., as "expected", to avoid flagging the build red for a known problem. Functionally, this extends the scope of the existing expectedFailureXXX decorators to cover these states as well. Once this is in, I will start replacing the magic list of failing tests in dosep.py with our regular annotations which should hopefully make code simpler. Reviewers: tfiala Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15530 llvm-svn: 255763
* Disable test reruns on arm unless explicitly marked with --rerun-all-issuesTodd Fiala2015-12-161-1/+2
| | | | | | | Workaround part 2 for: https://llvm.org/bugs/show_bug.cgi?id=25844 llvm-svn: 255747
* Add a symbolic link from the test directory to the actual - elsewhere ↵Enrico Granata2015-12-161-1/+1
| | | | | | | | | | located - path that contains the test cases - and teach the test suite driver to resolve paths that contain symbolic links to test cases This is meant to reduce the typing that one needs to do to get from the test subdirectory to actual test cases. Now one can just do $ ./dotest.py ./testcases/<yaddayaddayadda> llvm-svn: 255741
* Read macro info from .debug_macro section and use it for expression evaluation.Siva Chandra2015-12-166-1/+156
| | | | | | | | | | | | | | | | | Summary: DWARF 5 proposes a reinvented .debug_macro section. This change follows that spec. Currently, only GCC produces the .debug_macro section and hence the added test is annottated with expectedFailureClang. Reviewers: spyffe, clayborg, tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15437 llvm-svn: 255729
* prevent rerun logic from kicking in on test runs including aarch64.Todd Fiala2015-12-151-2/+6
| | | | | | | This is a workaround for: llvm.org/pr25844 llvm-svn: 255719
* Propagate socket_error exception from handle_read. Otherwise Ninja crashes.Adrian McCarthy2015-12-151-3/+2
| | | | llvm-svn: 255718
* test infra: support test reruns in xunit formatter.Todd Fiala2015-12-151-7/+13
| | | | llvm-svn: 255705
* Enable the 'type X list' formatters commands to list formatters in language ↵Enrico Granata2015-12-151-1/+4
| | | | | | categories llvm-svn: 255687
* test-infra: refactored new summary results into base ResultsFormatter classTodd Fiala2015-12-154-386/+326
| | | | | | | This allows more specialized formatters to still reuse the results summarization display from the base class. llvm-svn: 255676
* Merge ENABLE_THREADS and ENABLE_STD_THREADS markersTamas Berghammer2015-12-1511-15/+15
| | | | | | | | | | | | Both of these markers are used in the test suit for annotating when a test needs multi threaded support. Previously they had slightly different meening but they converged to the point where they are used interchangably. This CL removes the ENABLE_STD_THREADS one to simplify the test suite and avoid some confusion. Differential revision: http://reviews.llvm.org/D15498 llvm-svn: 255641
* Make few adjustments after r255542.Siva Chandra2015-12-151-3/+3
| | | | | | | | | | Reviewers: zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15511 llvm-svn: 255584
* test infra: catch and print exception info on test runner socket listenerTodd Fiala2015-12-141-5/+21
| | | | | | | | | | | | | | This is the listener's spawned connection, not the listener itself. (i.e. this is the test runner's receiving side of test event sockets). A standard socket.error will just issue an INFO statement and continue. Something other than a socket.error will get an ERROR: printed (and also continue). Hopefully this gets us more info and also handles the completely to-be-expected scenario that the test inferior might go down at any point. llvm-svn: 255581
* [Test] Addresses failing test when path to make contains spacesKate Stone2015-12-141-2/+2
| | | | llvm-svn: 255568
* Remove the multiplier loop.Zachary Turner2015-12-141-7/+27
| | | | | | | | This is leading to some kind of subtle issue related to local functions and closures, so let's just go back to the old way for now. llvm-svn: 255567
* Revert "Temporarily skip TestWithLimitDebugInfo on Darwin and OS X"Todd Fiala2015-12-141-2/+0
| | | | | | This reverts commit 30ed0826a1bb800454088ea1ae16c113a69b92b1. llvm-svn: 255557
* Temporarily skip TestWithLimitDebugInfo on Darwin and OS XTodd Fiala2015-12-141-0/+2
| | | | | | This test is erroring out on a sequence call to a function. llvm-svn: 255549
* Correction in TestFrames.py test for arm targets in thumb modeOmair Javaid2015-12-141-3/+6
| | | | | | Differential revision: http://reviews.llvm.org/D15061 llvm-svn: 255547
* test infra: enable single-worker rerun phase for flakey tests.Todd Fiala2015-12-149-26/+195
| | | | | | | | | | | | | | | | Use of --rerun-all-issues will enable any test method failure, not just test methods marked with the flakey decorator, to rerun. Currently this does not change the flakey logic's immediate rerun attempt. I want to make sure this doesn't cause any significant issues before changing that part. The rerun reporting is only known to work properly with the default (new) BasicResultsFormatter reporting. Once we work out any issues, I'll go back and make sure the curses output handles it properly as well. llvm-svn: 255543
* Make skipIf decorator support not_in() functor.Zachary Turner2015-12-141-6/+8
| | | | llvm-svn: 255542
* Make debug info specification use categories system.Zachary Turner2015-12-148-107/+42
| | | | | | | Reviewed By: Tamas Berghammer, Pavel Labath Differential Revision: http://reviews.llvm.org/D15428 llvm-svn: 255525
* Make test categories composablePavel Labath2015-12-143-18/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Previously the add_test_categories would simply overwrite the current set of categories for a method. This change makes the decorator truly "add" categories, by extending the current set of categories instead of replacing it. To do this, I have: - replaced the getCategories() property on a method (which was itself a method), with a simple list property "categories". This makes add_test_categories easier to implement, and test categories isn't something which should change between calls anyway. - rewritten the getCategoriesForTest function to merge method categories with the categories of the test case. Previously, it would just use the method categories if they were present. I have also greatly simplified this method. Originally, it would use a lot of introspection to enable it being called on various types of objects. Based on my tests, it was only ever being called on a test case. The new function uses much less introspection then the preivous one, so we should easily catch any stray uses, if there are any, as they will generate exceptions now. Reviewers: zturner, tfiala, tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15451 llvm-svn: 255493
* Extend XFAIL on TestNamespaceLookup on linuxPavel Labath2015-12-141-1/+1
| | | | | | one of the tests seems to (occasionally) fail with clang as well. llvm-svn: 255492
* XFAIL TestNamespaceLookup for linuxPavel Labath2015-12-141-0/+4
| | | | llvm-svn: 255490
* [LLDB][MIPS] Mark TestConcurrentEvents.py expected failure, as MIPS atomic ↵Mohit K. Bhakkad2015-12-141-0/+1
| | | | | | | | | | sequences are yet to be supported in LLDB Reviewers: jaydeep. Subscribers: lldb-commits. Differential Revision: http://reviews.llvm.org/D15488 llvm-svn: 255488
* Test case for "Fix scope-based lookup when more than one function is found."Dawn Perchik2015-12-121-0/+216
| | | | | | | Missed commit in r255439. Differential Revision: http://reviews.llvm.org/D15312 llvm-svn: 255440
* Fix scope-based lookup when more than one function is found.Dawn Perchik2015-12-126-2/+169
| | | | | | | | | | | | | | | | | | | | | | | | When multiple functions are found by name, lldb removes duplicate entries of functions with the same type, so the first function in the symbol context list is chosen, even if it isn't in scope. This patch uses the declaration context of the execution context to select the function which is in scope. This fixes cases like the following: int func(); namespace ns { int func(); void here() { // Run to BP here and eval 'p func()'; // lldb used to find ::func(), now finds ns::func(). } } Reviewed by: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15312 llvm-svn: 255439
* test infra: adds book-keeping for rerunnable testsTodd Fiala2015-12-127-45/+165
| | | | | | | | | | | | | | Also adds full path info for exceptional exits and timeouts when no test method is currently running. Adds --rerun-all-issues command line arg. If specified, all test issues are eligible for rerun. If not specified, only tests marked flakey are eligible for rerun. The actual rerunning will occur in an upcoming change. This change just handles tha accounting of what should be rerun. llvm-svn: 255438
* Decouple test execution and test finder logic in parallel test runner.Todd Fiala2015-12-121-16/+22
| | | | llvm-svn: 255400
* Use new set when checking if a test event type matches the job/test result typesTodd Fiala2015-12-111-3/+1
| | | | llvm-svn: 255385
* Revert "Revert "Turn on new test summary results by default.""Todd Fiala2015-12-112-2/+9
| | | | | | This reverts commit f994b46a2028c8a8b9b55fe010a95122bca07540. llvm-svn: 255381
* Add some tests for stack and local variable inspection for mini dumps.Adrian McCarthy2015-12-113-9/+109
| | | | | | Differential Revision: http://reviews.llvm.org/D15435 llvm-svn: 255379
* Add expected timeout support to test event architecture.Todd Fiala2015-12-114-1/+74
| | | | llvm-svn: 255363
* Remove -S option from dotest.py.Zachary Turner2015-12-115-21/+1
| | | | llvm-svn: 255361
* Remove -r and -R options from dotest.py.Zachary Turner2015-12-113-108/+1
| | | | llvm-svn: 255360
* Add test event marking a test as explicitly eligible for rerun if it is ↵Todd Fiala2015-12-113-4/+30
| | | | | | | | | | | | | | marked flakey. This will be used in a future change to support rerunning flakey tests that hit a test result isue in a low-load, single worker test runner phase. This is implemented as an additive-style event rather than being evaluated and added to the start_test event because the decorator code only runs after the start_test event is created and sent. i.e. LLDBTestResult.startTest() runs before the test method decorators run. llvm-svn: 255351
* Create test for llvm.org/pr25806Tamas Berghammer2015-12-1113-15/+100
| | | | | | | | | | LLDB don't detect the loading of a shared object file linked against the main executable before the static initializers are executed for the given module. Because of this it is not possible to get breakpoint hits in these static initializers and to display proper debug info in case of a crash in these codes. llvm-svn: 255342
* XFAIL TestLoadUnload for Windows->AndroidPavel Labath2015-12-111-0/+1
| | | | llvm-svn: 255341
* Revert "Turn on new test summary results by default."Pavel Labath2015-12-112-9/+2
| | | | | | | The new test summary formatter does not honor the "expected timeout" markings, which makes our buildbots all red. I'm switching it off by default until we figure out a way to make this work. llvm-svn: 255335
* test result details now print module.class.test_name in verbose mode.Todd Fiala2015-12-102-2/+10
| | | | | | | And, turns off verbose mode by default. This must have been switched on as the default when somebody was testing. llvm-svn: 255310
* Add NetBSD support in the buildDriver and buildLibrary routinesKamil Rytarowski2015-12-101-2/+2
| | | | | | | | | | | | Summary: NetBSD is like FreeBSD and Linux in these routines. Reviewers: clay.chang, tfiala, emaste, joerg Subscribers: lldb-commits, emaste Differential Revision: http://reviews.llvm.org/D15374 llvm-svn: 255308
* Remove the -y option from dotest.py.Zachary Turner2015-12-1011-38/+9
| | | | llvm-svn: 255280
* Remove the -x option from dotest.py.Zachary Turner2015-12-106-20/+3
| | | | llvm-svn: 255279
* Remove deprecated command line options from dotest.pyZachary Turner2015-12-102-19/+0
| | | | llvm-svn: 255278
* Remove the --output-on-success command line argument from dotest.Zachary Turner2015-12-104-31/+5
| | | | llvm-svn: 255277
OpenPOWER on IntegriCloud