From 44d937820b451296f80449ac3de296345e80f183 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 27 Jan 2014 23:43:24 +0000 Subject: Merging the iohandler branch back into main. The many many benefits include: 1 - Input/Output/Error streams are now handled as real streams not a push style input 2 - auto completion in python embedded interpreter 3 - multi-line input for "script" and "expression" commands now allow you to edit previous/next lines using up and down arrow keys and this makes multi-line input actually a viable thing to use 4 - it is now possible to use curses to drive LLDB (please try the "gui" command) We will need to deal with and fix any buildbot failures and tests and arise now that input/output and error are correctly hooked up in all cases. llvm-svn: 200263 --- .../TestDefaultConstructorForAPIObjects.py | 10 ---------- lldb/test/python_api/default-constructor/sb_debugger.py | 3 --- .../python_api/default-constructor/sb_inputreader.py | 16 ---------------- 3 files changed, 29 deletions(-) delete mode 100644 lldb/test/python_api/default-constructor/sb_inputreader.py (limited to 'lldb/test/python_api/default-constructor') diff --git a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py index 81b853a5854..11b8d73dcb9 100644 --- a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py +++ b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py @@ -163,16 +163,6 @@ class APIDefaultConstructorTestCase(TestBase): import sb_function sb_function.fuzz_obj(obj) - @python_api_test - def test_SBInputReader(self): - obj = lldb.SBInputReader() - if self.TraceOn(): - print obj - self.assertFalse(obj) - # Do fuzz testing on the invalid obj, it should not crash lldb. - import sb_inputreader - sb_inputreader.fuzz_obj(obj) - @python_api_test def test_SBInstruction(self): obj = lldb.SBInstruction() diff --git a/lldb/test/python_api/default-constructor/sb_debugger.py b/lldb/test/python_api/default-constructor/sb_debugger.py index d9b47561169..e7c188f09ba 100644 --- a/lldb/test/python_api/default-constructor/sb_debugger.py +++ b/lldb/test/python_api/default-constructor/sb_debugger.py @@ -38,9 +38,6 @@ def fuzz_obj(obj): pass obj.DispatchInputInterrupt() obj.DispatchInputEndOfFile() - obj.PushInputReader(lldb.SBInputReader()) - obj.NotifyTopInputReader(lldb.eInputReaderActivate) - obj.InputReaderIsTopReader(lldb.SBInputReader()) obj.GetInstanceName() obj.GetDescription(lldb.SBStream()) obj.GetTerminalWidth() diff --git a/lldb/test/python_api/default-constructor/sb_inputreader.py b/lldb/test/python_api/default-constructor/sb_inputreader.py deleted file mode 100644 index 6996059dc51..00000000000 --- a/lldb/test/python_api/default-constructor/sb_inputreader.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -Fuzz tests an object after the default construction to make sure it does not crash lldb. -""" - -import sys -import lldb - -def fuzz_obj(obj): - try: - obj.Initialize(lldb.SBDebugger.Create(), None, 0, "$", "^", True) - except Exception: - pass - obj.IsActive() - obj.IsDone() - obj.SetIsDone(True) - obj.GetGranularity() -- cgit v1.2.3