[Lldb-commits] [lldb] c0e3bb4 - [lldb] Fix TestFileHandle.py
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 24 23:57:58 PST 2021
Author: Pavel Labath
Date: 2021-11-25T08:56:45+01:00
New Revision: c0e3bb4d4ba3064c42fb8e1ee9f001235d9af04c
URL: https://github.com/llvm/llvm-project/commit/c0e3bb4d4ba3064c42fb8e1ee9f001235d9af04c
DIFF: https://github.com/llvm/llvm-project/commit/c0e3bb4d4ba3064c42fb8e1ee9f001235d9af04c.diff
LOG: [lldb] Fix TestFileHandle.py
- remove the decorator which is no longer available in main
- remove dependence on revision number, which are not available in all
builds
Added:
Modified:
lldb/test/API/python_api/file_handle/TestFileHandle.py
Removed:
################################################################################
diff --git a/lldb/test/API/python_api/file_handle/TestFileHandle.py b/lldb/test/API/python_api/file_handle/TestFileHandle.py
index 05bb12ea5c4a..b9aee7a37560 100644
--- a/lldb/test/API/python_api/file_handle/TestFileHandle.py
+++ b/lldb/test/API/python_api/file_handle/TestFileHandle.py
@@ -853,13 +853,12 @@ def test_sbstream(self):
with open(self.out_filename, 'r') as f:
self.assertEqual(f.read().strip(), "Frobozz")
- @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented.
def test_set_sbstream(self):
with open(self.out_filename, 'w') as outf:
outsbf = lldb.SBFile(outf.fileno(), "w", False)
status = self.dbg.SetOutputFile(outsbf)
self.assertTrue(status.Success())
- self.dbg.SetInputString("version\nhelp\n")
+ self.dbg.SetInputString("help apropos\nhelp help\n")
opts = lldb.SBCommandInterpreterRunOptions()
self.dbg.RunCommandInterpreter(True, False, opts, 0, False, False)
@@ -867,5 +866,5 @@ def test_set_sbstream(self):
with open(self.out_filename, 'r') as f:
output = f.read()
- self.assertTrue(re.search(r'Show a list of all debugger commands', output))
- self.assertTrue(re.search(r'llvm revision', output))
\ No newline at end of file
+ self.assertIn('Show a list of all debugger commands', output)
+ self.assertIn('List debugger commands related to a word', output)
More information about the lldb-commits
mailing list