diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-12-19 22:51:27 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-12-19 22:51:27 +0000 |
commit | fee6e493b0062930f091847e68f14d9fc2bbd4bb (patch) | |
tree | 10d12f6d3594a062d31a08cc8ee8759f8bdc42cb /lldb/test/python_api/debugger/TestDebuggerAPI.py | |
parent | 5894a9138c188766e109f1d7de48c3d1fee0cec6 (diff) | |
download | bcm5719-llvm-fee6e493b0062930f091847e68f14d9fc2bbd4bb.tar.gz bcm5719-llvm-fee6e493b0062930f091847e68f14d9fc2bbd4bb.zip |
Work in progress for:
rdar://problem/10577182
Audit lldb API impl for places where we need to perform a NULL check
Add NULL checks for SBDebugger APIs.
llvm-svn: 146917
Diffstat (limited to 'lldb/test/python_api/debugger/TestDebuggerAPI.py')
-rw-r--r-- | lldb/test/python_api/debugger/TestDebuggerAPI.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lldb/test/python_api/debugger/TestDebuggerAPI.py b/lldb/test/python_api/debugger/TestDebuggerAPI.py new file mode 100644 index 00000000000..b9d169e244a --- /dev/null +++ b/lldb/test/python_api/debugger/TestDebuggerAPI.py @@ -0,0 +1,30 @@ +""" +Test Debugger APIs. +""" + +import os, time +import re +import unittest2 +import lldb, lldbutil +from lldbtest import * + +class DebuggerAPITestCase(TestBase): + + mydir = os.path.join("python_api", "debugger") + + @python_api_test + def test_debugger_api_boundary_condition(self): + """Exercise SBDebugger APIs with boundary conditions.""" + self.dbg.HandleCommand(None) + self.dbg.SetDefaultArchitecture(None) + self.dbg.GetScriptingLanguage(None) + self.dbg.CreateTarget(None) + self.dbg.CreateTarget(None, None, None, True, lldb.SBError()) + self.dbg.CreateTargetWithFileAndTargetTriple(None, None) + self.dbg.CreateTargetWithFileAndArch(None, None) + self.dbg.FindTargetWithFileAndArch(None, None) + self.dbg.SetInternalVariable(None, None, None) + self.dbg.GetInternalVariableValue(None, None) + self.dbg.SetPrompt(None) + self.dbg.SetCurrentPlatform(None) + self.dbg.SetCurrentPlatformSDKRoot(None) |