[lldb/test] Remove a check from TestLoadAfterAttach
authorPavel Labath <pavel@labath.sk>
Tue, 28 Sep 2021 12:44:42 +0000 (14:44 +0200)
committerPavel Labath <pavel@labath.sk>
Tue, 28 Sep 2021 12:47:46 +0000 (14:47 +0200)
The two module retrieval methods (qXfer:libraries-svr4 and manual list
traversal) differ in how the handle the
manually-added-but-not-yet-loaded modules. The svr4 path will remove it,
while the manual one will keep in the list.

It's likely the two paths need ought to be synchronized, but right now,
this distinction is not relevant for the test.

lldb/test/API/functionalities/load_after_attach/TestLoadAfterAttach.py

index 3b261e6..de691e6 100644 (file)
@@ -39,13 +39,6 @@ class TestCase(TestBase):
         stopped_threads = lldbutil.continue_to_breakpoint(self.process(), breakpoint1)
         self.assertEqual(len(stopped_threads), 1)
 
-        # Check that image list does not contain liblib_b before dlopen.
-        self.match(
-                "image list",
-                patterns = [lib_name],
-                matching = False,
-                msg = lib_name + " should not have been in image list")
-
         # Change a variable to escape the loop
         self.runCmd("expression main_thread_continue = 1")