teak-llvm/lldb/packages/Python/lldbsuite/test/python_api
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
..
breakpoint [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
class_members [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
debugger [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
default-constructor new api class: SBFile 2019-10-03 04:01:07 +00:00
disassemble-raw-data [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
event [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
exprpath_synthetic [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
file_handle update SBDebugger::SetInputFile() etc to work on native Files 2019-10-10 19:10:59 +00:00
findvalue_duplist Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
formatters Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
frame Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
function_symbol [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
hello_world TestHelloWorld: Make compatible with remote testing 2019-10-09 21:41:02 +00:00
interpreter update TestRunCommandInterpreterAPI to use SBFile 2019-10-10 19:24:07 +00:00
lldbutil Revert: [lldb] [testsuite] Remove redundant MAKE_DSYM := NO 2019-09-27 18:52:34 +00:00
module_section Revert: [lldb] [testsuite] Remove redundant MAKE_DSYM := NO 2019-09-27 18:52:34 +00:00
name_lookup [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
objc_type Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
process Ah, only skip this for embedded darwin targets. 2019-09-11 01:03:24 +00:00
rdar-12481949 [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
sbdata [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
sblaunchinfo
sbstructureddata [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
sbtype_typeclass [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
sbvalue_const_addrof [ScriptInterpreter] Limit LLDB's globals to interactive mode. 2019-09-18 00:30:01 +00:00
sbvalue_persist [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
section [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
signals [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
symbol-context [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
target [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
thread [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
type [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
value [Python] Implement __next__ for value_iter 2019-09-04 18:59:13 +00:00
value_var_update Canonicalize variable usage in testsuite Makefiles 2019-09-25 00:36:00 +00:00
watchpoint [Windows] Add support of watchpoints to ProcessWindows 2019-09-06 05:37:03 +00:00
.categories