hanchenye-llvm-project/lldb/test/python_api/default-constructor/sb_filespec.py

15 lines
304 B
Python

"""
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.Exists()
obj.ResolveExecutableLocation()
obj.GetFilename()
obj.GetDirectory()
obj.GetPath(None, 0)
obj.GetDescription(lldb.SBStream())