summaryrefslogtreecommitdiffstats
path: root/lldb/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Change TestBSDArchives to expectedFailureWindows.Zachary Turner2015-08-201-1/+1
| | | | llvm-svn: 245631
* [Windows] XFAIL tests that require calling a function in target.Zachary Turner2015-08-2010-0/+11
| | | | | | | This has known issues on Windows. Fixing this is tracked by http://llvm.org/pr21765 llvm-svn: 245630
* XFAIL breakpoint tests on WindowsZachary Turner2015-08-202-0/+2
| | | | | | llvm.org/pr24528 tracks fixing this test. llvm-svn: 245629
* XFAIL TestBSDArchives.py on WindowsZachary Turner2015-08-201-0/+1
| | | | | | | llvm.org/pr24527 tracks this bug. Makefile.rules does not know how to build static libraries on Windows. llvm-svn: 245628
* XFAIL TestAnonymous.test_expr_null_with_dwarf on Windows.Zachary Turner2015-08-201-0/+1
| | | | | | | This bug is tracked in llvm.org/pr21550, and also reproduces on FreeBSD apparently. llvm-svn: 245627
* Increase timeout in TestCallWithTimeout to reduce flakynessPavel Labath2015-08-201-3/+3
| | | | | | | The test was flaky on the android buildbot, because the 10ms test completed before we got a chance to interrupt it. I increase the duration to 50ms to hopefully get more consistent results. llvm-svn: 245555
* Skip TestCreateDuringInstructionStep on android aarch64Pavel Labath2015-08-202-19/+23
| | | | | | we are unable to step through _M_start_thread due to atomic instruction sequences. llvm-svn: 245552
* [NativeProcessLinux] Fix a bug in instruction-stepping over thread creationPavel Labath2015-08-203-0/+129
| | | | | | | | | | | | | | | | | | | | | | | Summary: There was a bug in NativeProcessLinux, where doing an instruction-level single-step over the thread-creation syscall resulted in loss of control over the inferior. This happened because after the inferior entered the thread-creation maintenance stop, we unconditionally performed a PTRACE_CONT, even though the original intention was to do a PTRACE_SINGLESTEP. This is fixed by storing the original state of the thread before the stop (stepping or running) and then performing the appropriate action when resuming. I also get rid of the callback in the ThreadContext structure, which stored the lambda used to resume the thread, but which was not used consistently. A test verifying the correctness of the new behavior is included. Reviewers: ovyalov, tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12104 llvm-svn: 245545
* XTIMEOUT TestIntegerTypesExpr for Darwin.Chaoren Lin2015-08-201-0/+1
| | | | llvm-svn: 245532
* Fix tests to work on remote targets.Paul Herman2015-08-193-6/+6
| | | | llvm-svn: 245515
* Fix evaluation of global operators in C++Paul Herman2015-08-193-0/+93
| | | | llvm-svn: 245508
* Improve tests regarding imported namespaces and chained calls in C++Paul Herman2015-08-194-232/+87
| | | | llvm-svn: 245505
* XTIMEOUT TestChangeProcessGroup for Linux.Chaoren Lin2015-08-191-0/+1
| | | | llvm-svn: 245477
* XTIMEOUT TestEvents and TestThreadStates for Windows to Android.Chaoren Lin2015-08-191-0/+6
| | | | llvm-svn: 245464
* XTIMEOUT TestExitDuringStep for Darwin.Chaoren Lin2015-08-191-0/+1
| | | | llvm-svn: 245460
* Increase timeout in TestCallThatRestartsPavel Labath2015-08-191-0/+2
| | | | | | | | the test was failing on android because processing 30 signals involved a lot of round-trips, which was not possible in the 0.5s default timeout. After the increase the test seems to pass reliably. llvm-svn: 245448
* Add TestCrashDuringStepPavel Labath2015-08-193-0/+86
| | | | | | this tests that a crash that happens during instruction step is reported correctly. llvm-svn: 245440
* On Linux, clear the signal mask of the launched inferiorPavel Labath2015-08-191-1/+0
| | | | | | | | | | | | | | | | | | | Summary: Due to fork()/execve(), the launched inferior inherits the signal mask of its parent (lldb-server). But because lldb-server modifies its signal mask (It blocks SIGCHLD, for example), the inferior starts with some signals being initially blocked. One consequence is that TestCallThatRestarts.ExprCommandThatRestartsTestCase (test/expression_command/call-restarts) fails because sigchld_handler() in lotta-signals.c is not called, due to the SIGCHLD signal being blocked. To prevent the signal masking done by lldb-server from affecting the created inferior, the signal mask of the inferior is now cleared before the execve(). Patch by: Yacine Belkadi Reviewers: ovyalov, labath Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12138 llvm-svn: 245436
* XFAIL TestCppScope for Darwin.Chaoren Lin2015-08-191-0/+2
| | | | llvm-svn: 245418
* Fix TestCppNsImport and TestCppScope for remote tests.Chaoren Lin2015-08-192-18/+18
| | | | llvm-svn: 245412
* XFAIL TestCppChainedCalls for GCC.Chaoren Lin2015-08-191-0/+1
| | | | llvm-svn: 245407
* Fix resolution conflict between global and class static variables in C++Paul Herman2015-08-183-0/+113
| | | | llvm-svn: 245381
* Test chaned function calls and imported namespaces in C++Paul Herman2015-08-186-0/+385
| | | | llvm-svn: 245380
* Fix TestArrayTypes on Windows.Zachary Turner2015-08-181-3/+7
| | | | | | | | | | Whether or not frames print their tid in hex or decimal is apparently hardcoded to depend on the operating system. For now a comment was added that this should be changed to a more sane check (for example a setting), and the OS check is updated to do the right thing for Windows. llvm-svn: 245371
* Mark TestCModules as XFAIL on OSX.Oleksiy Vyalov2015-08-181-0/+2
| | | | | | http://reviews.llvm.org/D11962 llvm-svn: 245357
* [Windows] XFAIL tests that depend on expression name lookup.Zachary Turner2015-08-1811-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | Name lookup doesn't work properly with Windows targets. This is most likely due to issues with name mangling, although there is at least one set of debug info related issues as well, since some of the name lookup requests appear to be failing on types rather than symbols. Specifically, this patch XFAILS the following set of tests: TestChar1632T.py TestRdar12991846.py TestConstVariables.py TestCallCPPFunction.py TestCallStopAndContinue.py TestCallUserDefinedFunction.py TestCModules.py TestCPPThis.py TestExprs2.py TestOverloadedFunctions.py TestRvalueReferences.py And fixing the underlying issue is tracked in http://llvm.org/pr24489 llvm-svn: 245338
* [ValueObjectSynthetic and ValueObjectDynamicValue] Override GetDeclarationSiva Chandra2015-08-181-0/+1
| | | | | | | | | | | | | | Summary: Returns the declaration of the parent (non-synthetic or static) value. Reviewers: granata.enrico, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12092 llvm-svn: 245319
* Revert part of "Convert all use of pthreads in tests to c++11 threads."Chaoren Lin2015-08-184-82/+82
| | | | | | | | | TestExprDoesntBlock started failing because deadlocks behave differently with pthread_mutex and std::mutex. This reverts part of commit r245234. llvm-svn: 245262
* Convert all use of pthreads in tests to c++11 threads.Zachary Turner2015-08-1714-192/+172
| | | | | | | | | | This eliminates portability issues among platforms that don't have a pthreads implementation. Differential Revision: http://reviews.llvm.org/D12043 Reviewed By: Greg Clayton llvm-svn: 245234
* Enable settings test for i686 as well as i386.Zachary Turner2015-08-141-1/+1
| | | | llvm-svn: 245128
* Make skipUnlessArch decorator actually skip instead of XFAIL.Zachary Turner2015-08-141-5/+18
| | | | llvm-svn: 245127
* XFAIL some data formatter tests on Windows.Zachary Turner2015-08-145-0/+5
| | | | | | Fixing these bugs is tracked by http://llvm.org/pr24462. llvm-svn: 245126
* Disable libstdc++ and libcxx data formatter tests on Windows.Zachary Turner2015-08-148-4/+9
| | | | | | | | | | Neither of these libraries has been ported to Windows. Eventually if they are ever ported we can re-enable these tests. But more immediately what we need to do is add new data formatters for MSVC's STL implementation. This is tracked in http://llvm.org/pr24460. llvm-svn: 245125
* Don't test the output of "target modules dump symfile a.out" as this isn't ↵Greg Clayton2015-08-141-4/+0
| | | | | | something we should be testing for. This makes this test pass again. llvm-svn: 245078
* Update dosep to print unexpected successes at the end.Zachary Turner2015-08-141-15/+33
| | | | llvm-svn: 245066
* Remove Unicode byte-order mark from python files.Zachary Turner2015-08-1326-26/+26
| | | | | | | | | This was caused by a bug in the PTVS source file editor, which has since been fixed and awaiting a new release. For now people using this editor need to remember to manually remove this before committing a file. llvm-svn: 244963
* Disable lldb-mi tests on Windows.Zachary Turner2015-08-1316-94/+93
| | | | | | | | | | | | | | | Most were already XFAIL'ed, but the reason for the XFAIL is that we don't have a suitable pexpect implementation on Windows. This isn't going to change unintentionally, so there is no reason to XFAIL them as opposed to just skip them. llvm.org/pr22274 tracks finding a suitable pexpect module for Windows, which should fix many of these issues. llvm.org/pr24452 tracks the larger issue of making the entire lldb-mi test suite work on Windows, of which finding a pexpect module is just one component. llvm-svn: 244951
* XFAIL Watchpoint tests on Windows.Zachary Turner2015-08-1313-13/+32
| | | | | | https://llvm.org/pr24446 tracks getting these tests re-enabled. llvm-svn: 244950
* Set orig_eax to -1 for Linux x86 platformsRavitheja Addepally2015-08-131-1/+0
| | | | | | | | | | | | | | | | | Summary: For Linux x86 based environments the orig_eax/orig_rax register should be set to -1 to prevent the instruction pointer to be decremented, which was the cause for the SIGILL exception. Fix for Bug 23659 Reviewers: zturner, ashok.thirumurthi, mikesart, jingham, clayborg Subscribers: clayborg, labath Differential Revision: http://reviews.llvm.org/D11411 llvm-svn: 244875
* Make dosep.py PEP8 compliant. NFC.Chaoren Lin2015-08-121-38/+71
| | | | | | | | | | Reviewers: zturner, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11846 llvm-svn: 244784
* Refactor dosep to use list comprehension. NFC.Chaoren Lin2015-08-121-43/+31
| | | | | | | | | | Reviewers: zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11910 llvm-svn: 244783
* Don't print number of failures and percentage if no tests ran.Chaoren Lin2015-08-121-4/+10
| | | | | | | | | | Reviewers: zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11909 llvm-svn: 244782
* Make dosep output status by overwriting the same line.Chaoren Lin2015-08-121-32/+41
| | | | | | | | | | | | Summary: Update to D11816. Reviewers: zturner Subscribers: zturner, lldb-commits Differential Revision: http://reviews.llvm.org/D11843 llvm-svn: 244781
* Don't crash if the file we want to touch doesn't exist.Greg Clayton2015-08-111-2/+1
| | | | llvm-svn: 244663
* Add size field to library load event (MI)Ilia K2015-08-111-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: (This revision supersedes the abandon: http://reviews.llvm.org/D9716) Size field is used to let the debugger attribute an address to a specific library when symbols are not available. For example: OpenGLESApp4.app!Cube_draw() Line 74 C OpenGLESApp4.app!-[GameViewController glkView:drawInRect:](GameViewController * self, SEL _cmd, GLKView * view, CGRect rect) Line 89 C++ GLKit!<redacted> QuartzCore!<redacted> QuartzCore!<redacted> QuartzCore!<redacted> QuartzCore!<redacted> QuartzCore!<redacted> UIKit!<redacted> UIKit!<redacted> UIKit!<redacted> UIKit!<redacted> FrontBoardServices!<redacted> CoreFoundation!<redacted> Patch from paulmay@microsoft.com Reviewers: ChuckR, abidh, ki.stfu Subscribers: greggm, lldb-commits Differential Revision: http://reviews.llvm.org/D11574 llvm-svn: 244573
* Allow dosep.py to print dotest.py output on success.Zachary Turner2015-08-101-13/+41
| | | | | | | | | | | | | | | | | | | | Previously all test output was reported by each individual instance of dotest.py. After a recent patch, dosep gets dotest outptu via a pipe, and selectively decides which output to print. This breaks certain scripts which rely on having full output of each dotest instance to do various parsing and/or log-scraping. While we make no promises about the format of dotest output, it's easy to restore this to the old behavior for now, although it is behind a flag. To re-enable full output, run dosep.py with the -s option. Differential Revision: http://reviews.llvm.org/D11816 Reviewed By: Chaoren Lin llvm-svn: 244469
* Flush stderr on dosep status update for Windows.Chaoren Lin2015-08-051-0/+1
| | | | llvm-svn: 244069
* XFAIL TestInferiorAssert for Android API <= 16.Chaoren Lin2015-08-031-0/+1
| | | | llvm-svn: 243922
* [lldb-mi] Fix evaluation for children of created variable object.Dawn Perchik2015-07-311-0/+11
| | | | | | | | | | | | | | Move code in CMICmdCmdVarListChildren::Execute() up so that the child object will always be added when the MI command -var-list-children is entered (instead of only when the print-value was all or simple). This patch fixes evaluation of expressions like varobj.member for a created varobj with children. Reviewed by: abidh Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11659 llvm-svn: 243782
* Escape new line and tabs in the result of variable evaluation.Hafiz Abid Qadeer2015-07-311-1/+1
| | | | | | | | | Expression evaluation error messages may have embedded new lines and tabs. These should be escaped in the result string. Patch by paulmaybee. Reviewed in http://reviews.llvm.org/D11570. llvm-svn: 243741
OpenPOWER on IntegriCloud