repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
lldb
/
test
/
API
/
python_api
/
default-constructor
/
sb_watchpoint.py
blob
8aa38126ad4d61f3d013273ca6e8bb809b846bba
1
"""
2
Fuzz tests an object after the default construction to make sure it does not crash lldb.
3
"""
4
5
import
lldb
6
7
8
def
fuzz_obj
(
obj
):
9
obj
.
GetID
()
10
obj
.
IsValid
()
11
obj
.
GetHardwareIndex
()
12
obj
.
GetWatchAddress
()
13
obj
.
GetWatchSize
()
14
obj
.
SetEnabled
(
True
)
15
obj
.
IsEnabled
()
16
obj
.
GetHitCount
()
17
obj
.
GetIgnoreCount
()
18
obj
.
SetIgnoreCount
(
5
)
19
obj
.
GetDescription
(
lldb
.
SBStream
(),
lldb
.
eDescriptionLevelVerbose
)
20
obj
.
SetCondition
(
"shouldWeStop()"
)
21
obj
.
GetCondition
()