From 40e978f7b331df942709e8ca20b8c6bce076eaac Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Mon, 27 Jun 2011 23:53:55 +0000 Subject: Add fuzz calls for SBFrame and SBFunction. llvm-svn: 133965 --- .../python_api/default-constructor/sb_function.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lldb/test/python_api/default-constructor/sb_function.py (limited to 'lldb/test/python_api/default-constructor/sb_function.py') diff --git a/lldb/test/python_api/default-constructor/sb_function.py b/lldb/test/python_api/default-constructor/sb_function.py new file mode 100644 index 00000000000..fb88d37ac19 --- /dev/null +++ b/lldb/test/python_api/default-constructor/sb_function.py @@ -0,0 +1,19 @@ +""" +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.GetName() + obj.GetMangledName() + obj.GetInstructions(lldb.SBTarget()) + sa = obj.GetStartAddress() + ea = obj.GetEndAddress() + # Do fuzz testing on the address obj, it should not crash lldb. + import sb_address + sb_address.fuzz_obj(sa) + sb_address.fuzz_obj(ea) + obj.GetPrologueByteSize + obj.GetDescription(lldb.SBStream()) -- cgit v1.2.3