[Lldb-commits] [lldb] e3645fd - [lldb/test] Fix a fragile assumption in TestTypeGetModule
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 2 06:43:10 PST 2020
Author: Pavel Labath
Date: 2020-11-02T15:42:14+01:00
New Revision: e3645fdff4639d2ac93e1869a7cd0be8ef24b6f2
URL: https://github.com/llvm/llvm-project/commit/e3645fdff4639d2ac93e1869a7cd0be8ef24b6f2
DIFF: https://github.com/llvm/llvm-project/commit/e3645fdff4639d2ac93e1869a7cd0be8ef24b6f2.diff
LOG: [lldb/test] Fix a fragile assumption in TestTypeGetModule
the binary can contain more than three compile units if the compiler
support files (crtbegin/end, etc.) come with their own debug info.
Added:
Modified:
lldb/test/API/functionalities/type_get_module/TestTypeGetModule.py
Removed:
################################################################################
diff --git a/lldb/test/API/functionalities/type_get_module/TestTypeGetModule.py b/lldb/test/API/functionalities/type_get_module/TestTypeGetModule.py
index 5a166e3b38aa..c1be113dc746 100644
--- a/lldb/test/API/functionalities/type_get_module/TestTypeGetModule.py
+++ b/lldb/test/API/functionalities/type_get_module/TestTypeGetModule.py
@@ -67,7 +67,7 @@ def test(self):
exe_module = self.find_module(target, 'a.out')
num_comp_units = exe_module.GetNumCompileUnits()
- self.assertEqual(num_comp_units, 3)
+ self.assertGreaterEqual(num_comp_units, 3)
comp_unit = self.find_comp_unit(exe_module, 'compile_unit1.c')
cu_type = self.find_type(comp_unit.GetTypes(), 'compile_unit1_type')
More information about the lldb-commits
mailing list