[lldb/test] Fix TestModuleLoadedNotifys duplicate module check (#193846) GitOrigin-RevId: eef81b7a0a6376aedadb23bab73e2af0ce3b8097
diff --git a/test/API/functionalities/target-new-solib-notifications/TestModuleLoadedNotifys.py b/test/API/functionalities/target-new-solib-notifications/TestModuleLoadedNotifys.py index 47af690..73df9be 100644 --- a/test/API/functionalities/target-new-solib-notifications/TestModuleLoadedNotifys.py +++ b/test/API/functionalities/target-new-solib-notifications/TestModuleLoadedNotifys.py
@@ -111,7 +111,11 @@ # shared cache. Use the basename so this also works # when reading dyld from the expanded shared cache. exe_basename = lldb.SBFileSpec(exe).basename - if module.file.basename not in ["dyld", exe_basename]: + if module.file.basename not in [ + "dyld", + "libsharedcache.dylib", + exe_basename, + ]: self.assertNotIn( module, already_loaded_modules,