summaryrefslogtreecommitdiffstats
path: root/lldb/test/expression_command
Commit message (Collapse)AuthorAgeFilesLines
...
* XFAIL'd TestPersistObjCPointeeType.pyVince Harron2015-05-122-1/+3
| | | | llvm-svn: 237182
* Enable TestCallStopAndContinue on FreeBSDEd Maste2015-05-081-1/+0
| | | | | | | | | | It's reported to pass consistently on Linux now, and it passed for me in local testing on FreeBSD. Remove the expectedFailureFreeBSD decorator for now. llvm.org/pr20274 llvm-svn: 236853
* Enable TestCallStopAndContinue on LinuxPavel Labath2015-05-051-1/+0
| | | | | | | This test has been working reliably for me in the last 300 test runs. Enabling to see what the buildbot thinks... llvm-svn: 236495
* un-skipped a bunch of tests on LinuxVince Harron2015-05-041-1/+1
| | | | | | | | | Some have been marked as skipIfLinux for years. The seem to be passing so I've enabled them. Differential Revision: http://reviews.llvm.org/D9428 llvm-svn: 236403
* XFAIL tests that are failed on linux with gcc-4.9.2Ying Chen2015-04-211-0/+2
| | | | | | | | | | | | | | | | | | | Summary: - add decorator functions to xfail and skip test on specific os, architecture and version of comipler - xfail failing test with gcc-4.9.2 on linux - add one usage of skipIf function Test Plan: Run tests with different archs, and version of compilers to verify decorator function working as expected Run tests with gcc-4.9.2 and no failure reported Reviewers: sivachandra, ovyalov, vharron, chaoren Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8851 llvm-svn: 235368
* Make several test case arm32 compatibleTamas Berghammer2015-04-171-1/+2
| | | | llvm-svn: 235172
* [TestFormatters, TestDataFormatterSynthVal] Mark as xfail.Siva Chandra2015-04-101-0/+1
| | | | | | | | | | | | | | | | Summary: This is to get the bots to go green while a robust solution to fix these tests is worked out. Reviewers: chaoren, tberghammer, clayborg Reviewed By: tberghammer, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8947 llvm-svn: 234625
* Make Test11588 compatible with non x86/x86_64 architectureTamas Berghammer2015-04-011-6/+5
| | | | llvm-svn: 233796
* Enabled a bunch of tests on LinuxVince Harron2015-03-311-1/+0
| | | | | | | | | Removed expectedFailureLinux from failures that I was unable to reproduce, updated and improved some other comments near XFAIL tests Differential Revision: http://reviews.llvm.org/D8676 llvm-svn: 233716
* Create new test for expression evaluation where char type mattersTamas Berghammer2015-03-313-0/+83
| | | | | | | | | | | char is a special type in C++ which can be signed/unsigned and have to be distinguished both from "signed char" and from "unsigned char". This test check for this behaviour during the expression evaluation with different compiler settings. Differential revision: http://reviews.llvm.org/D8657 llvm-svn: 233678
* Replace sys.platform skips in tests with @skip decorators which check ↵Robert Flack2015-03-309-13/+13
| | | | | | | | | | | | | | | | against remote platform. Adds @skipIfPlatform and @skipUnlessPlatform decorators which will skip if / unless the target platform is in the provided platform list. Test Plan: ninja check-lldb shows no regressions. When running cross platform, tests which cannot run on the target platform are skipped. Differential Revision: http://reviews.llvm.org/D8665 llvm-svn: 233547
* Don't clobber CFLAGS_EXTRAS in tests.Robert Flack2015-03-241-1/+1
| | | | | | | | | | | | | | | | | To run tests against a different target platform many extra compiler flags are needed to specify sysroot, include dirs, etc. The environment variable CFLAGS_EXTRAS seems suited for this purpose except that several Makefiles clobber the current flags. This change modifies all of these to add to CFLAGS_EXTRAS instead. Test Plan: Verify no regressions in ninja check-lldb. Run tests using CFLAGS_EXTRAS to specify cross compilation flags for a different target running lldb-server platform. Differential Revision: http://reviews.llvm.org/D8559 llvm-svn: 233066
* Enable TestCallStdStringFunction for GCC.Siva Chandra2015-03-181-1/+0
| | | | | | | | | | | | Test Plan: dotest.py -C gcc -p TestCallStdStringFunction Reviewers: vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8426 llvm-svn: 232687
* Skip intermittently failing test on FreeBSDEd Maste2015-03-181-0/+1
| | | | | | | | It is already skipped on the other platforms anyhow. llvm.org/pr19246 llvm-svn: 232640
* Use -fno-limit-debug-info instead of -fstandalone-debug in testsVince Harron2015-03-151-1/+1
| | | | | | | | | | | | | This fixes tests on clang-3.4 AFAICT, these flags have the same affect and -fstandalone-debug wasn't added until after clang-3.4 Committed to try to fix buildbot Differential Revision: http://reviews.llvm.org/D8347 llvm-svn: 232326
* Use -fstandalone-debug for few tests to get around a Clang optimizationVince Harron2015-02-281-0/+7
| | | | | | | | | | | | | | | | | | | clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD targets. Other targets do not, which causes several tests to fail. This flag enables FullDebugInfo for all targets. Fixes the following tests: TestCallStdStringFunction.py TestDataFormatterSkipSummary.py TestDataFormatterStdIterator.py TestDataFormatterStdList.py TestDataFormatterStdString.py TestSBValuePersist.py TestStringPrinter.py TestTypeCompletion.py llvm-svn: 230831
* Move several GetByteSize() calls over to the brave new world of taking an ↵Enrico Granata2015-01-283-0/+147
| | | | | | | | | | ExecutionContext* And since enough of these are doing the right thing, add a test case to verify we are doing the right thing with freeze drying ObjC object types Fixes rdar://18092770 llvm-svn: 227282
* Some more cleanup of the ValueObjectConstResultImpl code. NFC.Enrico Granata2014-12-121-1/+1
| | | | llvm-svn: 224160
* Fix up this test caseEnrico Granata2014-12-121-9/+9
| | | | llvm-svn: 224157
* The number '5' triggers a bug unrelated to LLDB, and is not instrumental to ↵Enrico Granata2014-10-162-9/+8
| | | | | | this test in any way. Use another, randomly chosen, number to make the test pass again and provide useful actionable feedback about things that truly matter llvm-svn: 219982
* Some more failure to bug trackingEnrico Granata2014-10-161-1/+1
| | | | llvm-svn: 219973
* This test case was incorrect, it was relying on the factJim Ingham2014-10-071-2/+6
| | | | | | | | | | | | | that the function we were calling would continue to sleep for the requested time even if it was interrupted. That is not true of std::this_thread::sleep_for, at least not on OS X. Fix the test case so that if it wakes up early, it goes back to sleep till the time is actually greater than the end point. <rdar://problem/18523742> llvm-svn: 219234
* Modify call-function and rdar-12437442 tests to clean up all files produced ↵Todd Fiala2014-09-081-0/+3
| | | | | | during test run. llvm-svn: 217387
* Get test executables compiling on Windows.Zachary Turner2014-08-135-43/+34
| | | | | | | | | | | | | | Many of the test executables use pthreads directly. This isn't portable on Windows, so this patch converts these test to use C++11 threads and mutexes. Since Windows' implementation of std::thread classes throw and catch from header files, this patch also disables exceptions when compiling with clang on Windows. Reviewed by: Todd Fiala, Ed Maste Differential Revision: http://reviews.llvm.org/D4816 llvm-svn: 215562
* Add FreeBSD failure decorator for TestCallStopAndContinueEd Maste2014-07-121-0/+1
| | | | | | | | | | The testrun now completes successfully on my FreeBSD 11.0-CURRENT laptop. There are some intermittent failures on the FreeBSD buildbot still, which should be addressed in later commits. llvm.org/pr20274 llvm-svn: 212878
* Flipped intermittent test failures from skip to XFAIL.Todd Fiala2014-07-102-4/+4
| | | | | | | | | | | | | | | | | | The following intermittently-failing tests have been flipped from skip to XFAIL on some combo of Linux and MacOSX: TestCallStopAndContinue.py (Linux, MacOSX) TestCallWithTimeout.py (Linux) TestConvenienceVariables.py (Linux) TestStopHookMultipleThreads.py (Linux) The following new tests have been marked XFAIL but are just intermittently failing: TestMultipleDebug.py (definitely intermittent on MacOSX, not sure I've seen it pass yet on Linux) llvm-svn: 212762
* Skip tests that are intermittent on Linux, fix gdb-remote port-grabbing code.Todd Fiala2014-07-092-0/+2
| | | | | | | | | | | | | Marked skipped for Linux: TestCallStopAndContinue TestConvenienceVariables TestStopHookMultipleThreads Fixed up gdb-remote port-grabbing code to use a random port in a wide range, and to allow that to fail more gracefully. This appears to have solved some gdb-remote intermittent failing behavior. llvm-svn: 212662
* Skip TestCallStopAndContinue and TestCallThatRestarts on Darwin.Todd Fiala2014-07-092-0/+4
| | | | | | | | | These are failing intermittently. See http://llvm.org/bugs/show_bug.cgi?id=19246 for TestCallThatRestarts. Also applies to Linux. See http://llvm.org/bugs/show_bug.cgi?id=20274 for TestCallStopAndContinue. llvm-svn: 212660
* If a hand-called function is interrupted by hitting a breakpoint, then Jim Ingham2014-07-082-0/+73
| | | | | | | when you continue to finish off the function call, the expression result will be included as part of the thread stop info. llvm-svn: 212506
* Marked TestFormatters.py XFAIL on Linux per pr20230.Todd Fiala2014-07-071-0/+1
| | | | | | See http://www.llvm.org/bugs/show_bug.cgi?id=20230 for details. llvm-svn: 212486
* Fix interval recalculation in the event that usleep is interruptedEd Maste2014-04-291-1/+1
| | | | llvm-svn: 207566
* Add decorator for FreeBSD buildbot failureEd Maste2014-04-291-0/+1
| | | | | | llvm.org/pr19605 llvm-svn: 207557
* 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 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
* Fixed up intermittently failing tests to skip on Linux.Todd Fiala2014-03-251-0/+1
| | | | | | | | | | | 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
* 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
* expectedFailureDarwin for this test case.Jim Ingham2014-03-201-0/+2
| | | | llvm-svn: 204287
* Expected failure printing std::string::c_str() due to flubbing the typedef ↵Jim Ingham2014-03-191-6/+4
| | | | | | lookup. llvm-svn: 204206
* Update test class name and comment to match testEd Maste2014-03-031-2/+2
| | | | llvm-svn: 202718
* Restore signal delivery to the inferior on FreeBSDEd Maste2014-02-281-1/+0
| | | | | | | This was broken in the threaded inferior implementation for FreeBSD (r196787) and caused FreeBSD to resume always with no signal. llvm-svn: 202513
* Enable TestCallThatRestarts test on Linux.Todd Fiala2014-02-281-1/+0
| | | | | | | | | | This is related to: http://llvm.org/bugs/show_bug.cgi?id=15278 I ran this 20 times in a row without failure at svn r202440 on Ubuntu 12.04 LTS x86_64 using July 2013 libedit and gcc 4.8.2. llvm-svn: 202448
* Remove decorator for llvm.org/pr17233Ed Maste2014-02-111-1/+0
| | | | | | | This test was skipped as it used to segfault on FreeBSD. It seems the original issue has since been fixed, so have the test run again. llvm-svn: 201169
* Correctly set the working directory when launching processes for both local ↵Greg Clayton2013-12-135-5/+5
| | | | | | and remote targets. llvm-svn: 197266
* Make this test an expected fail on darwin until we can fix this bug.Greg Clayton2013-12-111-1/+1
| | | | llvm-svn: 197087
* Massive test suite cleanup to stop everyone from manually having to compute ↵Greg Clayton2013-12-1015-15/+15
| | | | | | | | | | "mydir" inside each test case. This has led to many test suite failures because of copy and paste where new test cases were based off of other test cases and the "mydir" variable wasn't updated. Now you can call your superclasses "compute_mydir()" function with "__file__" as the sole argument and the relative path will be computed for you. llvm-svn: 196985
* Annotate test that fails on the FreeBSD buildbotEd Maste2013-11-211-0/+1
| | | | | | llvm.org/pr17807 llvm-svn: 195361
* This patch does a couple of things. Jim Ingham2013-11-072-1/+27
| | | | | | | | | | | | | | | | | | | | | | It completes the job of using EvaluateExpressionOptions consistently throughout the inferior function calling mechanism in lldb begun in Greg's patch r194009. It removes a handful of alternate calls into the ClangUserExpression/ClangFunction/ThreadPlanCallFunction which were there for convenience. Using the EvaluateExpressionOptions removes the need for them. Using that it gets the --debug option from Greg's patch to work cleanly. It also adds another EvaluateExpressionOption to not trap exceptions when running expressions. You shouldn't use this option unless you KNOW your expression can't throw beyond itself. This is: <rdar://problem/15374885> At present this is only available through the SB API's or python. It fixes a bug where function calls would unset the ObjC & C++ exception breakpoints without checking whether they were set by somebody else already. llvm-svn: 194182
* <rdar://problem/12042982>Enrico Granata2013-10-041-2/+2
| | | | | | | | | | | | | | | | | | | This radar extends the notion of one-liner summaries to automagically apply in a few interesting cases More specifically, this checkin changes the printout of ValueObjects to print on one-line (as if type summary add -c had been applied) iff: this ValueObject does not have a summary its children have no synthetic children its children are not a non-empty base class without a summary its children do not have a summary that asks for children to show up the aggregate length of all the names of all the children is <= 50 characters you did not ask to see the types during a printout your pointer depth is 0 This is meant to simplify the way LLDB shows data on screen for small structs and similarly compact data types (e.g. std::pair<int,int> anyone?) Feedback is especially welcome on how the feature feels and corner cases where we should apply this printout and don't (or viceversa, we are applying it when we shouldn't be) llvm-svn: 191996
* This test uses ObjC so it should not run on anything != DarwinEnrico Granata2013-09-301-0/+1
| | | | llvm-svn: 191698
* Test case for the previous checkinEnrico Granata2013-09-303-0/+89
| | | | llvm-svn: 191697
OpenPOWER on IntegriCloud