diff options
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
| -rw-r--r-- | lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py b/lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py index a5c79378bab5..22b0d01c2c17 100644 --- a/lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py +++ b/lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py @@ -76,6 +76,12 @@ class StackCoreScriptedProcesTestCase(TestBase): ) self.assertTrue(corefile_process, PROCESS_IS_VALID) + # Create a random lib which does not exist in the corefile. + random_dylib = self.get_module_with_name(corefile_target, "random.dylib") + self.assertFalse( + random_dylib, "Dynamic library random.dylib should not be found." + ) + structured_data = lldb.SBStructuredData() structured_data.SetFromJSON( json.dumps( @@ -83,7 +89,15 @@ class StackCoreScriptedProcesTestCase(TestBase): "backing_target_idx": self.dbg.GetIndexOfTarget( corefile_process.GetTarget() ), - "libbaz_path": self.getBuildArtifact("libbaz.dylib"), + "custom_modules": [ + { + "path": self.getBuildArtifact("libbaz.dylib"), + }, + { + "path": "/random/path/random.dylib", + "load_addr": 12345678, + }, + ], } ) ) |
