Add assert to check the SBModule of SBSymbolContextList returned from SBTarget.FindFunctions().

llvm-svn: 134651
This commit is contained in:
Johnny Chen 2011-07-07 22:45:54 +00:00
parent e789755db7
commit f8ae3c7396
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ class TargetAPITestCase(TestBase):
self.assertTrue(num == 1 and list.GetSize() == 1)
for sc in list:
self.assertTrue(sc.GetModule().GetFileSpec().GetFilename() == exe_name)
self.assertTrue(sc.GetSymbol().GetName() == 'c')
def get_description(self):