Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_error.py
blob7d14c3e5844b6d89106bbbded3faf1f113ccec6a
1 """
2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
3 """
5 import lldb
8 def fuzz_obj(obj):
9 obj.GetCString()
10 obj.Fail()
11 obj.Success()
12 obj.GetError()
13 obj.GetType()
14 obj.SetError(5, lldb.eErrorTypeGeneric)
15 obj.SetErrorToErrno()
16 obj.SetErrorToGenericError()
17 obj.SetErrorString("xyz")
18 obj.SetErrorString(None)
19 obj.SetErrorStringWithFormat("%s!", "error")
20 obj.SetErrorStringWithFormat(None)
21 obj.SetErrorStringWithFormat("error")
22 obj.SetErrorStringWithFormat("%s %s", "warning", "danger")
23 obj.SetErrorStringWithFormat("%s %s %s", "danger", "will", "robinson")
24 obj.GetDescription(lldb.SBStream())
25 obj.Clear()