diff options
| author | Jim Ingham <jingham@apple.com> | 2020-08-05 19:01:17 -0700 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2020-08-05 19:02:00 -0700 |
| commit | 08063f85a7eadb1e54d0a03e0307bf15319513e8 (patch) | |
| tree | a84aa3f4e6c2f3829e0b1b64a81d40a4888b2f2f /lldb/test/API/python_api | |
| parent | 0ee1eba58114d4cbe9d2c976e39887b6df4508f7 (diff) | |
| download | llvm-08063f85a7eadb1e54d0a03e0307bf15319513e8.zip llvm-08063f85a7eadb1e54d0a03e0307bf15319513e8.tar.gz llvm-08063f85a7eadb1e54d0a03e0307bf15319513e8.tar.bz2 | |
"|" used when "||" was meant in SBTarget::FindFunctions
Diffstat (limited to 'lldb/test/API/python_api')
| -rw-r--r-- | lldb/test/API/python_api/target/TestTargetAPI.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/test/API/python_api/target/TestTargetAPI.py b/lldb/test/API/python_api/target/TestTargetAPI.py index 5bdbf90..7db5388 100644 --- a/lldb/test/API/python_api/target/TestTargetAPI.py +++ b/lldb/test/API/python_api/target/TestTargetAPI.py @@ -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) |
