teak-llvm/lldb/packages/Python/lldbsuite/test
Lawrence D'Anna ab1cd65f19 update TestRunCommandInterpreterAPI to use SBFile
Summary:
If you look at what this test is doing, it's actually quite
mysterious why it works at all.   It sets the input file
inside a "with open".   As soon as the with block ends,
that file will be closed.   And yet somehow LLDB reads
commands from it anyway.    What's actually happening is that
the file descriptor gets dup'd when something inside LLDB
calls File::GetStream().   I think it's fair to say that
what this test is doing is illegal and it has no right
to expect it to work.

This patch updates the test with two cases.  One uses
the SBFile api, and actually transfers ownership of
the original file descriptor to the debugger.   The other
just uses the old FILE* API, but in a sane way.

I also set NO_DEBUG_INFO_TESTCASE, because this test doesn't
use any debug info and doesn't need to run three times.

Reviewers: JDevlieghere, jasonmolenda, labath

Reviewed By: labath

Subscribers: aprantl, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D68738

llvm-svn: 374424
2019-10-10 19:24:07 +00:00
..
android/platform [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
api [lldb] [testsuite] Mark TestSBCommandReturnObject as failing on Windows 2019-10-04 20:49:44 +00:00
arm Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
benchmarks [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
commands [lldb] Make sure import-std-module/sysroot actually passes for the right reasons 2019-10-10 12:57:14 +00:00
driver/batch_mode Don't stop execution in batch mode when process stops with SIGINT or SIGSTOP 2019-09-26 10:57:11 +00:00
functionalities Remove merge marker :-) 2019-10-10 18:30:47 +00:00
iohandler/completion dotest: improvements to the pexpect tests 2019-08-30 09:07:42 +00:00
issue_verification [dotest] Delete trivial inline test makefiles 2019-09-05 06:55:23 +00:00
lang Speed up accelerator table lookups 2019-10-10 17:59:15 +00:00
linux Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
macosx TestIndirectSymbols: Modernize the Makefile 2019-10-09 22:47:28 +00:00
make Remove CC autodetection from Makefile.rules 2019-10-10 17:59:18 +00:00
plugins [test] Use a different module cache for Shell and API tests. 2019-10-10 17:27:09 +00:00
python_api update TestRunCommandInterpreterAPI to use SBFile 2019-10-10 19:24:07 +00:00
sample_test Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
sanity
source-manager [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
terminal [dotest] Centralize initialization commands even more 2019-09-05 07:35:45 +00:00
test_runner
tools Skip Apple simulator test for all remote testing scenarios. 2019-10-09 20:39:04 +00:00
types [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
__init__.py
.categories
bench.py
concurrent_base.py
configuration.py [test] Use a different module cache for Shell and API tests. 2019-10-10 17:27:09 +00:00
darwin_log.py
decorators.py [DWARF] Evaluate DW_OP_entry_value 2019-09-11 21:23:45 +00:00
dotest_args.py [test] Use a different module cache for Shell and API tests. 2019-10-10 17:27:09 +00:00
dotest.py [test] Use a different module cache for Shell and API tests. 2019-10-10 17:27:09 +00:00
lldb_pylint_helper.py
lldbbench.py
lldbdwarf.py
lldbinline.py [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
lldbpexpect.py Port TestBatchMode to PExpectTest class 2019-09-04 09:20:08 +00:00
lldbplatform.py
lldbplatformutil.py TestMTCSimple.py: allow the test to run on Darwin embedded platforms 2019-10-09 23:52:31 +00:00
lldbtest_config.py
lldbtest.py [test] Use a different module cache for Shell and API tests. 2019-10-10 17:27:09 +00:00
lldbutil.py
lock.py
README-TestSuite
redo.py
test_categories.py
test_result.py