]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/python_api/default-constructor/sb_stringlist.py
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / python_api / default-constructor / sb_stringlist.py
1 """
2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
3 """
4
5 import sys
6 import lldb
7
8
9 def fuzz_obj(obj):
10     obj.AppendString("another string")
11     obj.AppendString(None)
12     obj.AppendList(None, 0)
13     obj.AppendList(lldb.SBStringList())
14     obj.GetSize()
15     obj.GetStringAtIndex(0xffffffff)
16     obj.Clear()
17     for n in obj:
18         s = str(n)