Changed fuzz tests to not print their values (we only need to test if access to them does not crash).

This fixes the 'No value' string appearing in the dotest results.

llvm-svn: 191399
This commit is contained in:
Richard Mitton 2013-09-25 20:48:03 +00:00
parent d36c8d23a5
commit 0d40120615
13 changed files with 18 additions and 18 deletions

View File

@ -32,4 +32,4 @@ def fuzz_obj(obj):
obj.GetNumLocations()
obj.GetDescription(lldb.SBStream())
for bp_loc in obj:
print bp_loc
s = str(bp_loc)

View File

@ -12,4 +12,4 @@ def fuzz_obj(obj):
obj.FindLineEntryIndex(0, 0xffffffff, None)
obj.GetDescription(lldb.SBStream())
for line_entry in obj:
print line_entry
s = str(line_entry)

View File

@ -56,4 +56,4 @@ def fuzz_obj(obj):
obj.SetCloseInputOnEOF(False)
obj.Clear()
for target in obj:
print target
s = str(target)

View File

@ -14,4 +14,4 @@ def fuzz_obj(obj):
obj.DumpEmulationForAllInstructions("armv7")
obj.Clear()
for inst in obj:
print inst
s = str(inst)

View File

@ -19,11 +19,11 @@ def fuzz_obj(obj):
sc_list = obj.FindFunctions("my_func", lldb.eFunctionNameTypeAny)
obj.FindGlobalVariables(lldb.SBTarget(), "my_global_var", 1)
for section in obj.section_iter():
print section
s = str(section)
for symbol in obj.symbol_in_section_iter(lldb.SBSection()):
print symbol
s = str(symbol)
for symbol in obj:
print symbol
s = str(symbol)
obj.GetAddressByteSize()
obj.GetByteOrder()
obj.GetTriple()

View File

@ -46,4 +46,4 @@ def fuzz_obj(obj):
obj.Clear()
obj.GetNumSupportedHardwareWatchpoints(error)
for thread in obj:
print thread
s = str(thread)

View File

@ -19,4 +19,4 @@ def fuzz_obj(obj):
obj.GetSectionType()
obj.GetDescription(lldb.SBStream())
for subsec in obj:
print subsec
s = str(subsec)

View File

@ -13,5 +13,5 @@ def fuzz_obj(obj):
obj.GetSize()
obj.GetStringAtIndex(0xffffffff)
obj.Clear()
for str in obj:
print str
for n in obj:
s = str(n)

View File

@ -58,8 +58,8 @@ def fuzz_obj(obj):
obj.GetDescription(lldb.SBStream(), lldb.eDescriptionLevelBrief)
obj.Clear()
for module in obj.module_iter():
print module
s = str(module)
for bp in obj.breakpoint_iter():
print bp
s = str(bp)
for wp in obj.watchpoint_iter():
print wp
s = str(wp)

View File

@ -34,4 +34,4 @@ def fuzz_obj(obj):
obj.GetDescription(lldb.SBStream())
obj.Clear()
for frame in obj:
print frame
s = str(frame)

View File

@ -19,4 +19,4 @@ def fuzz_obj(obj):
obj.IsPointerType(None)
lldb.SBType.IsPointerType(None)
for child_type in obj:
print child_type
s = str(child_type)

View File

@ -38,7 +38,7 @@ def fuzz_obj(obj):
obj.Watch(True, True, False, error)
obj.WatchPointee(True, False, True, error)
for child_val in obj:
print child_val
s = str(child_val)
error = lldb.SBError()
obj.GetValueAsSigned (error, 0)
obj.GetValueAsUnsigned (error, 0)

View File

@ -11,4 +11,4 @@ def fuzz_obj(obj):
obj.GetValueAtIndex(100)
obj.FindValueObjectByUID(200)
for val in obj:
print val
s = str(val)