"|" used when "||" was meant in SBTarget::FindFunctions
This commit is contained in:
@@ -283,6 +283,10 @@ class TargetAPITestCase(TestBase):
|
||||
target = self.dbg.CreateTarget(exe)
|
||||
self.assertTrue(target, VALID_TARGET)
|
||||
|
||||
# Try it with a null name:
|
||||
list = target.FindFunctions(None, lldb.eFunctionNameTypeAuto)
|
||||
self.assertTrue(list.GetSize() == 0)
|
||||
|
||||
list = target.FindFunctions('c', lldb.eFunctionNameTypeAuto)
|
||||
self.assertTrue(list.GetSize() == 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user