[Lldb-commits] [lldb] d90b123 - [lldb] Fix TestVSCode.test_progress_events on Linux due to vdso

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 25 02:50:12 PDT 2021


Author: Raphael Isemann
Date: 2021-03-25T10:48:58+01:00
New Revision: d90b1230ea62eb9738ea369df38607551ea412e0

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

LOG: [lldb] Fix TestVSCode.test_progress_events on Linux due to vdso

This currently fails when we get the module for `[vdso]` which doesn't have
any parsing event associated with it as it's just created from memory.

Added: 
    

Modified: 
    lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py b/lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py
index 07e455d94a6ba..1bd16f4819486 100644
--- a/lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py
+++ b/lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py
@@ -499,8 +499,13 @@ def test_progress_events(self):
         self.assertTrue(progressStart_ids == progressEnd_ids,
                         ('Make sure we got a "progressEnd" for each '
                          '"progressStart" event that we have.'))
+
+        ignored_libraries = {"[vdso]"}
+
         # Verify we got a symbol table parsing progress event for each shared
         # library in our target.
         for target_shlib_basename in target_shlibs.keys():
-            self.assertTrue(target_shlib_basename in symtab_progress_shlibs,
+            if target_shlib_basename in ignored_libraries:
+                continue
+            self.assertIn(target_shlib_basename, symtab_progress_shlibs,
                             'Make sure we got a symbol table progress event for "%s"' % (target_shlib_basename))


        


More information about the lldb-commits mailing list