summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor/sb_inputreader.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-06-28 00:12:06 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-06-28 00:12:06 +0000
commit24c5296957614690359d61cb93cd136ec1157cc7 (patch)
treee140d1b98f6ab782ec9d8680ba23461cd6c990df /lldb/test/python_api/default-constructor/sb_inputreader.py
parent03aff72effcebc0be90fa3a4d4ce7e173cd5e55c (diff)
downloadbcm5719-llvm-24c5296957614690359d61cb93cd136ec1157cc7.tar.gz
bcm5719-llvm-24c5296957614690359d61cb93cd136ec1157cc7.zip
Add fuzz calls for SBInputReader.
llvm-svn: 133972
Diffstat (limited to 'lldb/test/python_api/default-constructor/sb_inputreader.py')
-rw-r--r--lldb/test/python_api/default-constructor/sb_inputreader.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_inputreader.py b/lldb/test/python_api/default-constructor/sb_inputreader.py
new file mode 100644
index 00000000000..9b94a12a7e3
--- /dev/null
+++ b/lldb/test/python_api/default-constructor/sb_inputreader.py
@@ -0,0 +1,13 @@
+"""
+Fuzz tests an object after the default construction to make sure it does not crash lldb.
+"""
+
+import sys
+import lldb
+
+def fuzz_obj(obj):
+ obj.Initialize(lldb.SBDebugger.Create(), None, None, 0, "$", "^", True)
+ obj.IsActive()
+ obj.IsDone()
+ obj.SetIsDone(True)
+ obj.GetGranularity()
OpenPOWER on IntegriCloud