forked from OSchip/llvm-project
[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
This commit is contained in:
parent
6ca8fde226
commit
c0e3bb4d4b
|
@ -853,13 +853,12 @@ class FileHandleTestCase(lldbtest.TestBase):
|
|||
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 @@ class FileHandleTestCase(lldbtest.TestBase):
|
|||
|
||||
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))
|
||||
self.assertIn('Show a list of all debugger commands', output)
|
||||
self.assertIn('List debugger commands related to a word', output)
|
||||
|
|
Loading…
Reference in New Issue