From f8ae3c7396aa6ba2b2aecdbe3a8919cffd80ff89 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 7 Jul 2011 22:45:54 +0000 Subject: [PATCH] Add assert to check the SBModule of SBSymbolContextList returned from SBTarget.FindFunctions(). llvm-svn: 134651 --- lldb/test/python_api/target/TestTargetAPI.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/test/python_api/target/TestTargetAPI.py b/lldb/test/python_api/target/TestTargetAPI.py index 06c836d38db0..6c2c4fd47844 100644 --- a/lldb/test/python_api/target/TestTargetAPI.py +++ b/lldb/test/python_api/target/TestTargetAPI.py @@ -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):