diff options
| author | Richard Mitton <richard@codersnotes.com> | 2013-09-25 20:48:03 +0000 | 
|---|---|---|
| committer | Richard Mitton <richard@codersnotes.com> | 2013-09-25 20:48:03 +0000 | 
| commit | 0d401206151183cc39ec5795075aacb4f1b645ba (patch) | |
| tree | 0dfe5243d4b03ac042b53c97b7d355f6a5b0e256 /lldb/test/python_api | |
| parent | d36c8d23a5c9e27d40bac56c4b59e5ca9f29ffe3 (diff) | |
| download | bcm5719-llvm-0d401206151183cc39ec5795075aacb4f1b645ba.tar.gz bcm5719-llvm-0d401206151183cc39ec5795075aacb4f1b645ba.zip  | |
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
Diffstat (limited to 'lldb/test/python_api')
13 files changed, 18 insertions, 18 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_breakpoint.py b/lldb/test/python_api/default-constructor/sb_breakpoint.py index 8618050c33d..2bdc539a001 100644 --- a/lldb/test/python_api/default-constructor/sb_breakpoint.py +++ b/lldb/test/python_api/default-constructor/sb_breakpoint.py @@ -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) diff --git a/lldb/test/python_api/default-constructor/sb_compileunit.py b/lldb/test/python_api/default-constructor/sb_compileunit.py index 9c2e597203c..92755ffa395 100644 --- a/lldb/test/python_api/default-constructor/sb_compileunit.py +++ b/lldb/test/python_api/default-constructor/sb_compileunit.py @@ -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) diff --git a/lldb/test/python_api/default-constructor/sb_debugger.py b/lldb/test/python_api/default-constructor/sb_debugger.py index 91440b26ed9..d9b47561169 100644 --- a/lldb/test/python_api/default-constructor/sb_debugger.py +++ b/lldb/test/python_api/default-constructor/sb_debugger.py @@ -56,4 +56,4 @@ def fuzz_obj(obj):      obj.SetCloseInputOnEOF(False)      obj.Clear()      for target in obj: -        print target +        s = str(target) diff --git a/lldb/test/python_api/default-constructor/sb_instructionlist.py b/lldb/test/python_api/default-constructor/sb_instructionlist.py index 9674af82446..09d62f97048 100644 --- a/lldb/test/python_api/default-constructor/sb_instructionlist.py +++ b/lldb/test/python_api/default-constructor/sb_instructionlist.py @@ -14,4 +14,4 @@ def fuzz_obj(obj):      obj.DumpEmulationForAllInstructions("armv7")      obj.Clear()      for inst in obj: -        print inst +        s = str(inst) diff --git a/lldb/test/python_api/default-constructor/sb_module.py b/lldb/test/python_api/default-constructor/sb_module.py index 771d326efee..49ceecb09fa 100644 --- a/lldb/test/python_api/default-constructor/sb_module.py +++ b/lldb/test/python_api/default-constructor/sb_module.py @@ -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() diff --git a/lldb/test/python_api/default-constructor/sb_process.py b/lldb/test/python_api/default-constructor/sb_process.py index 38ee86f1ec7..40132b19958 100644 --- a/lldb/test/python_api/default-constructor/sb_process.py +++ b/lldb/test/python_api/default-constructor/sb_process.py @@ -46,4 +46,4 @@ def fuzz_obj(obj):      obj.Clear()      obj.GetNumSupportedHardwareWatchpoints(error)      for thread in obj: -        print thread +        s = str(thread) diff --git a/lldb/test/python_api/default-constructor/sb_section.py b/lldb/test/python_api/default-constructor/sb_section.py index 6fc788296dd..899130abe27 100644 --- a/lldb/test/python_api/default-constructor/sb_section.py +++ b/lldb/test/python_api/default-constructor/sb_section.py @@ -19,4 +19,4 @@ def fuzz_obj(obj):      obj.GetSectionType()      obj.GetDescription(lldb.SBStream())      for subsec in obj: -        print subsec +        s = str(subsec) diff --git a/lldb/test/python_api/default-constructor/sb_stringlist.py b/lldb/test/python_api/default-constructor/sb_stringlist.py index 54d669dd697..9d8242c9b27 100644 --- a/lldb/test/python_api/default-constructor/sb_stringlist.py +++ b/lldb/test/python_api/default-constructor/sb_stringlist.py @@ -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) diff --git a/lldb/test/python_api/default-constructor/sb_target.py b/lldb/test/python_api/default-constructor/sb_target.py index 823b49f6243..3b01be3e344 100644 --- a/lldb/test/python_api/default-constructor/sb_target.py +++ b/lldb/test/python_api/default-constructor/sb_target.py @@ -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) diff --git a/lldb/test/python_api/default-constructor/sb_thread.py b/lldb/test/python_api/default-constructor/sb_thread.py index 5f342330ebd..b69b22ea6a9 100644 --- a/lldb/test/python_api/default-constructor/sb_thread.py +++ b/lldb/test/python_api/default-constructor/sb_thread.py @@ -34,4 +34,4 @@ def fuzz_obj(obj):      obj.GetDescription(lldb.SBStream())      obj.Clear()      for frame in obj: -        print frame +        s = str(frame) diff --git a/lldb/test/python_api/default-constructor/sb_type.py b/lldb/test/python_api/default-constructor/sb_type.py index 99de8577b76..5c801c1fbf2 100644 --- a/lldb/test/python_api/default-constructor/sb_type.py +++ b/lldb/test/python_api/default-constructor/sb_type.py @@ -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) diff --git a/lldb/test/python_api/default-constructor/sb_value.py b/lldb/test/python_api/default-constructor/sb_value.py index d103551635f..2bb8c58e254 100644 --- a/lldb/test/python_api/default-constructor/sb_value.py +++ b/lldb/test/python_api/default-constructor/sb_value.py @@ -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) diff --git a/lldb/test/python_api/default-constructor/sb_valuelist.py b/lldb/test/python_api/default-constructor/sb_valuelist.py index 4e41e11f29e..32f12f93dd8 100644 --- a/lldb/test/python_api/default-constructor/sb_valuelist.py +++ b/lldb/test/python_api/default-constructor/sb_valuelist.py @@ -11,4 +11,4 @@ def fuzz_obj(obj):      obj.GetValueAtIndex(100)      obj.FindValueObjectByUID(200)      for val in obj: -        print val +        s = str(val)  | 

