[Lldb-commits] [lldb] daed479 - [lldb] Adjust TestModuleCacheSimple for D115951

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 29 01:02:01 PST 2021


Author: Pavel Labath
Date: 2021-12-29T10:00:00+01:00
New Revision: daed4797fee4a5f1985388265f5af209b5cb3b10

URL: https://github.com/llvm/llvm-project/commit/daed4797fee4a5f1985388265f5af209b5cb3b10
DIFF: https://github.com/llvm/llvm-project/commit/daed4797fee4a5f1985388265f5af209b5cb3b10.diff

LOG: [lldb] Adjust TestModuleCacheSimple for D115951

Now that we are caching the dwarf index as well, we will always have
more than one cache file (when not using accelerator tables). I have
adjusted the test to check for the presence of one _symtab_ index.

Added: 
    

Modified: 
    lldb/test/API/functionalities/module_cache/simple_exe/TestModuleCacheSimple.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/module_cache/simple_exe/TestModuleCacheSimple.py b/lldb/test/API/functionalities/module_cache/simple_exe/TestModuleCacheSimple.py
index 35e96fb584ed1..6180203c4bb37 100644
--- a/lldb/test/API/functionalities/module_cache/simple_exe/TestModuleCacheSimple.py
+++ b/lldb/test/API/functionalities/module_cache/simple_exe/TestModuleCacheSimple.py
@@ -26,7 +26,8 @@ def setUp(self):
 
 
     def get_module_cache_files(self, basename):
-        module_file_glob = os.path.join(self.cache_dir, "llvmcache-*%s*" % (basename))
+        module_file_glob = os.path.join(self.cache_dir,
+                "llvmcache-*%s*-symtab-*" % (basename))
         return glob.glob(module_file_glob)
 
     # Doesn't depend on any specific debug information.


        


More information about the lldb-commits mailing list