xref: /llvm-project-15.0.7/lldb/test/API/python_api/default-constructor/sb_process_info.py (revision c5a20b51)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""
2Fuzz tests an object after the default construction to make sure it does not crash lldb.
3"""
4
5import lldb
6
7
8def fuzz_obj(obj):
9    obj.IsValid()
10    obj.GetName()
11    obj.GetExecutableFile()
12    obj.GetProcessID()
13    obj.GetUserID()
14    obj.GetGroupID()
15    obj.UserIDIsValid()
16    obj.GroupIDIsValid()
17    obj.GetEffectiveUserID()
18    obj.GetEffectiveGroupID()
19    obj.EffectiveUserIDIsValid()
20    obj.EffectiveGroupIDIsValid()
21    obj.GetParentProcessID()
22

served by {OpenGrok

Last Index Update: Tue Oct 21 18:42:31 GMT 2025