diff options
| author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-01-27 00:57:54 +0100 |
|---|---|---|
| committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-01-27 01:00:29 +0100 |
| commit | 326516448c839d8f9cc515b20a34d0f3a6ee2374 (patch) | |
| tree | d0a6e634d5382d884e2fe26532615820340567ac /lldb/test/API/python_api/sbmodule | |
| parent | 19f67ee29e06dc9bb65ac037a73bcd6d57e1e2e1 (diff) | |
| download | llvm-326516448c839d8f9cc515b20a34d0f3a6ee2374.zip llvm-326516448c839d8f9cc515b20a34d0f3a6ee2374.tar.gz llvm-326516448c839d8f9cc515b20a34d0f3a6ee2374.tar.bz2 | |
[lldb/test] Try to fix TestSBModule failure
This should fix https://lab.llvm.org/buildbot/#/builders/68/builds/25571
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/test/API/python_api/sbmodule')
| -rw-r--r-- | lldb/test/API/python_api/sbmodule/TestSBModule.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/test/API/python_api/sbmodule/TestSBModule.py b/lldb/test/API/python_api/sbmodule/TestSBModule.py index ab6a9a2..e3ab9bc 100644 --- a/lldb/test/API/python_api/sbmodule/TestSBModule.py +++ b/lldb/test/API/python_api/sbmodule/TestSBModule.py @@ -47,12 +47,12 @@ class SBModuleAPICase(TestBase): error = lldb.SBError() process = target.AttachToProcessWithID(self.dbg.GetListener(), self.background_pid, error) - self.assertTrue(error.Success() and process, PROCESS_IS_VALID) + self.assertTrue(error.Success(), PROCESS_IS_VALID) main_module = target.GetModuleAtIndex(0) self.assertEqual(main_module.GetFileSpec().GetFilename(), "a.out") self.assertFalse(main_module.IsFileBacked(), "The module should not be backed by a file on disk.") - error = process.Destroy() + error = process.Detach() self.assertTrue(error.Success(), "couldn't destroy process %s" % background_process.pid) |
