[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.
This commit is contained in:
Pavel Labath 2020-11-02 11:35:13 +01:00
parent cc96a82291
commit e3645fdff4
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class TestTypeGetModule(TestBase):
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')