Skip to content

Commit

Permalink
[lldb/test] Fix a fragile assumption in TestTypeGetModule
Browse files Browse the repository at this point in the history
the binary can contain more than three compile units if the compiler
support files (crtbegin/end, etc.) come with their own debug info.
  • Loading branch information
labath committed Nov 2, 2020
1 parent cc96a82 commit e3645fd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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')
Expand Down

0 comments on commit e3645fd

Please sign in to comment.