summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-07-07 22:45:54 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-07-07 22:45:54 +0000
commitf8ae3c7396aa6ba2b2aecdbe3a8919cffd80ff89 (patch)
treef4804bfb8647fa60ca56261d16d8c36fee6c3637 /lldb/test/python_api
parente789755db7efe936c8079fe3b69071db3e132547 (diff)
downloadbcm5719-llvm-f8ae3c7396aa6ba2b2aecdbe3a8919cffd80ff89.tar.gz
bcm5719-llvm-f8ae3c7396aa6ba2b2aecdbe3a8919cffd80ff89.zip
Add assert to check the SBModule of SBSymbolContextList returned from SBTarget.FindFunctions().
llvm-svn: 134651
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/target/TestTargetAPI.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/test/python_api/target/TestTargetAPI.py b/lldb/test/python_api/target/TestTargetAPI.py
index 06c836d38db..6c2c4fd4784 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):
OpenPOWER on IntegriCloud