Skip to content

Commit e3645fd

Browse files
committed
[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.
1 parent cc96a82 commit e3645fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/test/API/functionalities/type_get_module/TestTypeGetModule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test(self):
6767
exe_module = self.find_module(target, 'a.out')
6868

6969
num_comp_units = exe_module.GetNumCompileUnits()
70-
self.assertEqual(num_comp_units, 3)
70+
self.assertGreaterEqual(num_comp_units, 3)
7171

7272
comp_unit = self.find_comp_unit(exe_module, 'compile_unit1.c')
7373
cu_type = self.find_type(comp_unit.GetTypes(), 'compile_unit1_type')

0 commit comments

Comments
 (0)