"|" used when "||" was meant in SBTarget::FindFunctions

This commit is contained in:
Jim Ingham
2020-08-05 19:01:17 -07:00
parent 0ee1eba581
commit 08063f85a7
2 changed files with 5 additions and 1 deletions

View File

@@ -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)