llvm-project/lldb/test
Greg Clayton dacf689a34 Fixed a broken test suite test after recent editline merges.
The problem is that editline currently is trying to be smart when we paste things into a terminal window. It detects that input is pending and multi-line input is accepted as long as there is anything pending.

So if you open lldb and paste the text between the quotes:

"command regex carp
s/^$/help/

carp
"

We still still be stuck in the "command regex" multi-line input reader as it will have all three lines:

"s/^$/help/

carp
"

The true fix for this is something Kate Stone will soon work on:

- multi-line input readers must opt into this paste/pending input feature ("expr" will opt into it, all other commands won't)
- If we are in a multi-line input reader that requests this and stuff is pasted, then it will do what it does today
- if we start in a IOHandler that doesn't need/want pending input and text is pasted, and we transistion to a IOHandler that does want this functionality, then disable the pending input. Example text would be:

"frame variable
thread backtrace
expr
for (int i=0;i<10;++i)
  (int)printf("i = %i\n", i);

frame select 0
"

When we push the expression multi-line reader we would disable the pending input because we had pending input _before_ we entered "expr".

If we did this first:

(lldb) expr

Then we pasted:

"void foo()
{
}

void bar()
{
}
"

Then we would allow the pending input to not look for an empty line to terminate the expression. We filed radar 19008425 to track fixing this issue.

llvm-svn: 222206
2014-11-18 00:39:31 +00:00
..
api add Makefile rule for test program CREATE_STD_THREADS 2014-11-14 19:41:33 +00:00
arm_emulation Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case. 2013-12-10 23:19:29 +00:00
attic Initial commit of a new testsuite feature: test categories. 2012-09-21 19:10:53 +00:00
benchmarks Fixes a number of issue related to test portability on Windows. 2014-07-18 01:02:02 +00:00
driver/batch_mode Add a test for the -b (batch mode) option to the lldb driver. 2014-10-16 23:02:14 +00:00
example Initial commit of a new testsuite feature: test categories. 2012-09-21 19:10:53 +00:00
expression_command The number '5' triggers a bug unrelated to LLDB, and is not instrumental to 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 2014-10-16 23:06:40 +00:00
functionalities Fixed a broken test suite test after recent editline merges. 2014-11-18 00:39:31 +00:00
help Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case. 2013-12-10 23:19:29 +00:00
lang Fix a problem where the StringPrinter could be mistaking an empty string for a read error, and reporting spurious 'unable to read data' messages. rdar://19007243 2014-11-17 23:14:11 +00:00
linux/builtin_trap Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case. 2013-12-10 23:19:29 +00:00
logging I changed the logging test to just test that logging doesn't crash and does produce output. That's 2014-03-19 23:55:54 +00:00
macosx Remove shell-globbing from all test makefiles. 2014-07-31 21:03:11 +00:00
make add Makefile rule for test program CREATE_STD_THREADS 2014-11-14 19:41:33 +00:00
pexpect-2.4 Eliminate kernel warning when running tests on FreeBSD 2014-02-18 21:33:10 +00:00
plugins Make the test runner understand Windows command shell execution. 2014-07-22 16:19:29 +00:00
python_api Add decorator for intermittently failing test on FreeBSD 2014-11-17 15:27:09 +00:00
settings Fixes a number of issue related to test portability on Windows. 2014-07-18 01:02:02 +00:00
source-manager Make the test runner understand Windows command shell execution. 2014-07-22 16:19:29 +00:00
terminal Fixes a number of issue related to test portability on Windows. 2014-07-18 01:02:02 +00:00
tools/lldb-gdbserver Properly specify the regex used to match register indexes. 2014-11-14 09:46:21 +00:00
types Fixes so tests compile and run remotely. 2014-11-06 22:59:28 +00:00
unittest2 Added a simple legend to the unit test 'dots' output, to aid understandability. 2013-09-25 20:47:51 +00:00
warnings/uuid Fixes a number of issue related to test portability on Windows. 2014-07-18 01:02:02 +00:00
.categories Initial commit of a new testsuite feature: test categories. 2012-09-21 19:10:53 +00:00
CMakeLists.txt Fix test execution: the cmake keyword is CACHE, not CACHED 2014-08-01 16:57:46 +00:00
Makefile Rename dosep.ty to dosep.py 2014-07-21 16:16:31 +00:00
README-TestSuite Fix typos. 2014-07-01 21:22:11 +00:00
argparse_compat.py Include a small argparse compatibility layer for Python < 2.7 2013-02-16 09:05:23 +00:00
bench-history
bench.py
blacklist.py
crashinfo.c Alignment fix 2014-01-08 03:14:18 +00:00
dosep.py Sort unit test failures by name - submitted for Vince Harron http://reviews.llvm.org/D5904 2014-10-22 19:29:00 +00:00
dotest.py Fix some issue with running the test suite remotely on iOS. 2014-11-17 18:32:17 +00:00
lldbbench.py Tests decorated with @benchmarks_test do not participate in the remote-macosx test suite run. 2012-04-19 23:50:00 +00:00
lldbinline.py Allow inline test case to register actually useful teardown hooks by allowing a hook to be passed back the test instance, were it not to be already bound to self. Use this ability to make the reversal of escape-non-printables a teardown hook for added reliability of the testing logic 2014-11-05 21:31:57 +00:00
lldbtest.py Not all things callable have an im_self, so harden the test logic against that. getattr(,,None) is the closest to ?. we have in Python, so use that 2014-11-17 19:00:20 +00:00
lldbutil.py Print the new eStopReasonExec in stop_reason_to_str. 2014-04-03 01:25:28 +00:00
progress.py The new progress bar mode was losing us information compared to the old dots mode in that we would have no way of knowing about test failures (short of peeking into the test result directory.. and you're not supposed to peek!) 2013-02-09 00:37:07 +00:00
redo.py The new ReadStringFromMemory() API does not work correctly with NSStrings that have an explicit length and no NULL terminator 2013-04-23 20:05:05 +00:00