[Lldb-commits] [lldb] r251121 - Add from __future__ import print_function everywhere.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 23 10:04:35 PDT 2015
Author: zturner
Date: Fri Oct 23 12:04:29 2015
New Revision: 251121
URL: http://llvm.org/viewvc/llvm-project?rev=251121&view=rev
Log:
Add from __future__ import print_function everywhere.
Apparently there were tons of instances I missed last time, I
guess I accidentally ran 2to3 non-recursively. This should be
every occurrence of a print statement fixed to use a print function
as well as from __future__ import print_function being added to
every file.
After this patch print statements will stop working everywhere in
the test suite, and the print function should be used instead.
Modified:
lldb/trunk/test/android/platform/TestDefaultCacheLineSize.py
lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py
lldb/trunk/test/api/multiple-debuggers/TestMultipleDebuggers.py
lldb/trunk/test/api/multithreaded/TestMultithreaded.py
lldb/trunk/test/arm_emulation/TestEmulations.py
lldb/trunk/test/attic/tester.py
lldb/trunk/test/benchmarks/continue/TestBenchmarkContinue.py
lldb/trunk/test/benchmarks/disassembly/TestDisassembly.py
lldb/trunk/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py
lldb/trunk/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
lldb/trunk/test/benchmarks/expression/TestExpressionCmd.py
lldb/trunk/test/benchmarks/expression/TestRepeatedExprs.py
lldb/trunk/test/benchmarks/frame_variable/TestFrameVariableResponse.py
lldb/trunk/test/benchmarks/startup/TestStartupDelays.py
lldb/trunk/test/benchmarks/stepping/TestRunHooksThenSteppings.py
lldb/trunk/test/benchmarks/stepping/TestSteppingSpeed.py
lldb/trunk/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py
lldb/trunk/test/curses_results.py
lldb/trunk/test/dotest.py
lldb/trunk/test/dotest_channels.py
lldb/trunk/test/driver/batch_mode/TestBatchMode.py
lldb/trunk/test/expression_command/call-function/TestCallStdStringFunction.py
lldb/trunk/test/expression_command/call-function/TestCallStopAndContinue.py
lldb/trunk/test/expression_command/call-function/TestCallUserDefinedFunction.py
lldb/trunk/test/expression_command/call-restarts/TestCallThatRestarts.py
lldb/trunk/test/expression_command/call-throws/TestCallThatThrows.py
lldb/trunk/test/expression_command/char/TestExprsChar.py
lldb/trunk/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
lldb/trunk/test/expression_command/formatters/TestFormatters.py
lldb/trunk/test/expression_command/issue_11588/Test11588.py
lldb/trunk/test/expression_command/options/TestExprOptions.py
lldb/trunk/test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py
lldb/trunk/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py
lldb/trunk/test/expression_command/persistent_types/TestNestedPersistentTypes.py
lldb/trunk/test/expression_command/persistent_types/TestPersistentTypes.py
lldb/trunk/test/expression_command/persistent_variables/TestPersistentVariables.py
lldb/trunk/test/expression_command/po_verbosity/TestPoVerbosity.py
lldb/trunk/test/expression_command/radar_8638051/Test8638051.py
lldb/trunk/test/expression_command/radar_9531204/TestPrintfAfterUp.py
lldb/trunk/test/expression_command/radar_9673664/TestExprHelpExamples.py
lldb/trunk/test/expression_command/test/TestExprs.py
lldb/trunk/test/expression_command/test/TestExprs2.py
lldb/trunk/test/expression_command/timeout/TestCallWithTimeout.py
lldb/trunk/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py
lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py
lldb/trunk/test/functionalities/abbreviation/TestCommonShortSpellings.py
lldb/trunk/test/functionalities/archives/TestBSDArchives.py
lldb/trunk/test/functionalities/asan/TestMemoryHistory.py
lldb/trunk/test/functionalities/asan/TestReportData.py
lldb/trunk/test/functionalities/attach_resume/TestAttachResume.py
lldb/trunk/test/functionalities/avoids-fd-leak/TestFdLeak.py
lldb/trunk/test/functionalities/backticks/TestBackticksWithoutATarget.py
lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py
lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py
lldb/trunk/test/functionalities/breakpoint/breakpoint_command/bktptcmd.py
lldb/trunk/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
lldb/trunk/test/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py
lldb/trunk/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py
lldb/trunk/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
lldb/trunk/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py
lldb/trunk/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py
lldb/trunk/test/functionalities/breakpoint/consecutive_breakpoins/TestConsecutiveBreakpoints.py
lldb/trunk/test/functionalities/breakpoint/cpp/TestCPPBreakpointLocations.py
lldb/trunk/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py
lldb/trunk/test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py
lldb/trunk/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py
lldb/trunk/test/functionalities/breakpoint/objc/TestObjCBreakpoints.py
lldb/trunk/test/functionalities/command_history/TestCommandHistory.py
lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py
lldb/trunk/test/functionalities/command_script/TestCommandScript.py
lldb/trunk/test/functionalities/command_script/import/TestImport.py
lldb/trunk/test/functionalities/command_script/import/bar/bar.py
lldb/trunk/test/functionalities/command_script/import/foo/bar/foobar.py
lldb/trunk/test/functionalities/command_script/import/foo/foo.py
lldb/trunk/test/functionalities/command_script/import/foo/foo2.py
lldb/trunk/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py
lldb/trunk/test/functionalities/command_script/mysto.py
lldb/trunk/test/functionalities/command_script/welcome.py
lldb/trunk/test/functionalities/command_source/TestCommandSource.py
lldb/trunk/test/functionalities/command_source/my.py
lldb/trunk/test/functionalities/completion/TestCompletion.py
lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py
lldb/trunk/test/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
lldb/trunk/test/functionalities/data-formatter/compactvectors/TestCompactVectors.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/nsstring/TestDataFormatterNSString.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-proper-plurals/TestFormattersOneIsSingular.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-ptr-to-array/TestPtrToArrayFormatting.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/TestDataFormatterLibcxxListLoop.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py
lldb/trunk/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py
lldb/trunk/test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py
lldb/trunk/test/functionalities/data-formatter/hexcaps/TestDataFormatterHexCaps.py
lldb/trunk/test/functionalities/data-formatter/nsarraysynth/TestNSArraySynthetic.py
lldb/trunk/test/functionalities/data-formatter/nsdictionarysynth/TestNSDictionarySynthetic.py
lldb/trunk/test/functionalities/data-formatter/nssetsynth/TestNSSetSynthetic.py
lldb/trunk/test/functionalities/data-formatter/ostypeformatting/TestFormattersOsType.py
lldb/trunk/test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py
lldb/trunk/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py
lldb/trunk/test/functionalities/data-formatter/summary-string-onfail/Test-rdar-9974002.py
lldb/trunk/test/functionalities/data-formatter/synthcapping/TestSyntheticCapping.py
lldb/trunk/test/functionalities/data-formatter/synthupdate/TestSyntheticFilterRecompute.py
lldb/trunk/test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py
lldb/trunk/test/functionalities/data-formatter/var-in-aggregate-misuse/TestVarInAggregateMisuse.py
lldb/trunk/test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py
lldb/trunk/test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py
lldb/trunk/test/functionalities/dead-strip/TestDeadStrip.py
lldb/trunk/test/functionalities/disassembly/TestDisassembleBreakpoint.py
lldb/trunk/test/functionalities/dynamic_value_child_count/TestDynamicValueChildCount.py
lldb/trunk/test/functionalities/embedded_interpreter/TestConvenienceVariables.py
lldb/trunk/test/functionalities/exec/TestExec.py
lldb/trunk/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py
lldb/trunk/test/functionalities/fat_archives/TestFatArchives.py
lldb/trunk/test/functionalities/format/TestFormats.py
lldb/trunk/test/functionalities/inferior-assert/TestInferiorAssert.py
lldb/trunk/test/functionalities/inferior-changed/TestInferiorChanged.py
lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py
lldb/trunk/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
lldb/trunk/test/functionalities/inline-stepping/TestInlineStepping.py
lldb/trunk/test/functionalities/jitloader_gdb/TestJITLoaderGDB.py
lldb/trunk/test/functionalities/launch_with_shellexpand/TestLaunchWithShellExpand.py
lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py
lldb/trunk/test/functionalities/longjmp/TestLongjmp.py
lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py
lldb/trunk/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
lldb/trunk/test/functionalities/nosucharch/TestNoSuchArch.py
lldb/trunk/test/functionalities/object-file/TestImageListMultiArchitecture.py
lldb/trunk/test/functionalities/paths/TestPaths.py
lldb/trunk/test/functionalities/platform/TestPlatformCommand.py
lldb/trunk/test/functionalities/plugins/commands/TestPluginCommands.py
lldb/trunk/test/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
lldb/trunk/test/functionalities/postmortem/minidump/TestMiniDump.py
lldb/trunk/test/functionalities/process_attach/TestProcessAttach.py
lldb/trunk/test/functionalities/process_attach/attach_denied/TestAttachDenied.py
lldb/trunk/test/functionalities/process_group/TestChangeProcessGroup.py
lldb/trunk/test/functionalities/process_launch/TestProcessLaunch.py
lldb/trunk/test/functionalities/recursion/TestValueObjectRecursion.py
lldb/trunk/test/functionalities/register/TestRegisters.py
lldb/trunk/test/functionalities/rerun/TestRerun.py
lldb/trunk/test/functionalities/return-value/TestReturnValue.py
lldb/trunk/test/functionalities/set-data/TestSetData.py
lldb/trunk/test/functionalities/signal/TestSendSignal.py
lldb/trunk/test/functionalities/signal/handle-segv/TestHandleSegv.py
lldb/trunk/test/functionalities/signal/raise/TestRaise.py
lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
lldb/trunk/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py
lldb/trunk/test/functionalities/stop-hook/TestStopHookCmd.py
lldb/trunk/test/functionalities/stop-hook/TestStopHookMechanism.py
lldb/trunk/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py
lldb/trunk/test/functionalities/target_command/TestTargetCommand.py
lldb/trunk/test/functionalities/thread/TestNumThreads.py
lldb/trunk/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
lldb/trunk/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
lldb/trunk/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py
lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
lldb/trunk/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
lldb/trunk/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
lldb/trunk/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
lldb/trunk/test/functionalities/thread/jump/TestThreadJump.py
lldb/trunk/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
lldb/trunk/test/functionalities/thread/state/TestThreadStates.py
lldb/trunk/test/functionalities/thread/step_out/TestThreadStepOut.py
lldb/trunk/test/functionalities/thread/thread_exit/TestThreadExit.py
lldb/trunk/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py
lldb/trunk/test/functionalities/tty/TestTerminal.py
lldb/trunk/test/functionalities/type_completion/TestTypeCompletion.py
lldb/trunk/test/functionalities/type_lookup/TestTypeLookup.py
lldb/trunk/test/functionalities/unwind/noreturn/TestNoreturnUnwind.py
lldb/trunk/test/functionalities/unwind/sigtramp/TestSigtrampUnwind.py
lldb/trunk/test/functionalities/unwind/standard/TestStandardUnwind.py
lldb/trunk/test/functionalities/value_md5_crash/TestValueMD5Crash.py
lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py
lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py
lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py
lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/TestStepOverWatchpoint.py
lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py
lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py
lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py
lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py
lldb/trunk/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py
lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py
lldb/trunk/test/help/TestHelp.py
lldb/trunk/test/lang/c/anonymous/TestAnonymous.py
lldb/trunk/test/lang/c/array_types/TestArrayTypes.py
lldb/trunk/test/lang/c/bitfields/TestBitfields.py
lldb/trunk/test/lang/c/blocks/TestBlocks.py
lldb/trunk/test/lang/c/const_variables/TestConstVariables.py
lldb/trunk/test/lang/c/enum_types/TestEnumTypes.py
lldb/trunk/test/lang/c/forward/TestForwardDeclaration.py
lldb/trunk/test/lang/c/function_types/TestFunctionTypes.py
lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py
lldb/trunk/test/lang/c/modules/TestCModules.py
lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py
lldb/trunk/test/lang/c/set_values/TestSetValues.py
lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py
lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py
lldb/trunk/test/lang/c/stepping/TestStepAndBreakpoints.py
lldb/trunk/test/lang/c/stepping/TestThreadStepping.py
lldb/trunk/test/lang/c/tls_globals/TestTlsGlobals.py
lldb/trunk/test/lang/c/typedef/Testtypedef.py
lldb/trunk/test/lang/cpp/breakpoint-commands/TestCPPBreakpointCommands.py
lldb/trunk/test/lang/cpp/char1632_t/TestChar1632T.py
lldb/trunk/test/lang/cpp/class_static/TestStaticVariables.py
lldb/trunk/test/lang/cpp/class_types/TestClassTypes.py
lldb/trunk/test/lang/cpp/class_types/TestClassTypesDisassembly.py
lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py
lldb/trunk/test/lang/cpp/dynamic-value/TestDynamicValue.py
lldb/trunk/test/lang/cpp/enum_types/TestCPP11EnumTypes.py
lldb/trunk/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py
lldb/trunk/test/lang/cpp/namespace/TestNamespace.py
lldb/trunk/test/lang/cpp/rdar12991846/TestRdar12991846.py
lldb/trunk/test/lang/cpp/signed_types/TestSignedTypes.py
lldb/trunk/test/lang/cpp/static_members/TestCPPStaticMembers.py
lldb/trunk/test/lang/cpp/stl/TestSTL.py
lldb/trunk/test/lang/cpp/stl/TestStdCXXDisassembly.py
lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py
lldb/trunk/test/lang/cpp/unsigned_types/TestUnsignedTypes.py
lldb/trunk/test/lang/cpp/virtual/TestVirtual.py
lldb/trunk/test/lang/cpp/wchar_t/TestCxxWCharT.py
lldb/trunk/test/lang/go/goroutines/TestGoroutines.py
lldb/trunk/test/lang/go/types/TestGoASTContext.py
lldb/trunk/test/lang/mixed/TestMixedLanguages.py
lldb/trunk/test/lang/objc/blocks/TestObjCIvarsInBlocks.py
lldb/trunk/test/lang/objc/forward-decl/TestForwardDecl.py
lldb/trunk/test/lang/objc/foundation/TestConstStrings.py
lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py
lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py
lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py
lldb/trunk/test/lang/objc/foundation/TestObjectDescriptionAPI.py
lldb/trunk/test/lang/objc/foundation/TestRuntimeTypes.py
lldb/trunk/test/lang/objc/foundation/TestSymbolTable.py
lldb/trunk/test/lang/objc/hidden-ivars/TestHiddenIvars.py
lldb/trunk/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py
lldb/trunk/test/lang/objc/modules-auto-import/TestModulesAutoImport.py
lldb/trunk/test/lang/objc/modules-incomplete/TestIncompleteModules.py
lldb/trunk/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
lldb/trunk/test/lang/objc/modules/TestObjCModules.py
lldb/trunk/test/lang/objc/objc++/TestObjCXX.py
lldb/trunk/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py
lldb/trunk/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py
lldb/trunk/test/lang/objc/objc-checker/TestObjCCheckers.py
lldb/trunk/test/lang/objc/objc-class-method/TestObjCClassMethod.py
lldb/trunk/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py
lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py
lldb/trunk/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py
lldb/trunk/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py
lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py
lldb/trunk/test/lang/objc/objc-optimized/TestObjcOptimized.py
lldb/trunk/test/lang/objc/objc-property/TestObjCProperty.py
lldb/trunk/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py
lldb/trunk/test/lang/objc/objc-static-method/TestObjCStaticMethod.py
lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py
lldb/trunk/test/lang/objc/objc-struct-argument/TestObjCStructArgument.py
lldb/trunk/test/lang/objc/objc-struct-return/TestObjCStructReturn.py
lldb/trunk/test/lang/objc/objc-super/TestObjCSuper.py
lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py
lldb/trunk/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py
lldb/trunk/test/lang/objc/rdar-10967107/TestRdar10967107.py
lldb/trunk/test/lang/objc/rdar-11355592/TestRdar11355592.py
lldb/trunk/test/lang/objc/rdar-12408181/TestRdar12408181.py
lldb/trunk/test/lang/objc/real-definition/TestRealDefinition.py
lldb/trunk/test/linux/builtin_trap/TestBuiltinTrap.py
lldb/trunk/test/linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py
lldb/trunk/test/lldbcurses.py
lldb/trunk/test/lldbpexpect.py
lldb/trunk/test/lldbtest.py
lldb/trunk/test/lldbutil.py
lldb/trunk/test/logging/TestLogging.py
lldb/trunk/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
lldb/trunk/test/macosx/debug-info/apple_types/TestAppleTypesIsProduced.py
lldb/trunk/test/macosx/indirect_symbol/TestIndirectSymbols.py
lldb/trunk/test/macosx/order/TestOrderFile.py
lldb/trunk/test/macosx/queues/TestQueues.py
lldb/trunk/test/macosx/safe-to-func-call/TestSafeFuncCalls.py
lldb/trunk/test/macosx/universal/TestUniversal.py
lldb/trunk/test/plugins/builder_darwin.py
lldb/trunk/test/python_api/breakpoint/TestBreakpointAPI.py
lldb/trunk/test/python_api/class_members/TestSBTypeClassMembers.py
lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
lldb/trunk/test/python_api/disassemble-raw-data/TestDisassembleRawData.py
lldb/trunk/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py
lldb/trunk/test/python_api/event/TestEvents.py
lldb/trunk/test/python_api/findvalue_duplist/TestSBFrameFindValue.py
lldb/trunk/test/python_api/formatters/TestFormattersSBAPI.py
lldb/trunk/test/python_api/frame/TestFrames.py
lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py
lldb/trunk/test/python_api/function_symbol/TestDisasmAPI.py
lldb/trunk/test/python_api/function_symbol/TestSymbolAPI.py
lldb/trunk/test/python_api/hello_world/TestHelloWorld.py
lldb/trunk/test/python_api/interpreter/TestCommandInterpreterAPI.py
lldb/trunk/test/python_api/lldbutil/frame/TestFrameUtils.py
lldb/trunk/test/python_api/lldbutil/iter/TestLLDBIterator.py
lldb/trunk/test/python_api/lldbutil/iter/TestRegistersIterator.py
lldb/trunk/test/python_api/lldbutil/process/TestPrintStackTraces.py
lldb/trunk/test/python_api/module_section/TestModuleAndSection.py
lldb/trunk/test/python_api/objc_type/TestObjCType.py
lldb/trunk/test/python_api/process/TestProcessAPI.py
lldb/trunk/test/python_api/process/io/TestProcessIO.py
lldb/trunk/test/python_api/rdar-12481949/Test-rdar-12481949.py
lldb/trunk/test/python_api/sbdata/TestSBData.py
lldb/trunk/test/python_api/sbvalue_persist/TestSBValuePersist.py
lldb/trunk/test/python_api/section/TestSectionAPI.py
lldb/trunk/test/python_api/signals/TestSignalsAPI.py
lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py
lldb/trunk/test/python_api/target/TestTargetAPI.py
lldb/trunk/test/python_api/thread/TestThreadAPI.py
lldb/trunk/test/python_api/type/TestTypeList.py
lldb/trunk/test/python_api/value/TestValueAPI.py
lldb/trunk/test/python_api/value/change_values/TestChangeValueAPI.py
lldb/trunk/test/python_api/value/linked_list/TestValueAPILinkedList.py
lldb/trunk/test/python_api/value_var_update/TestValueVarUpdate.py
lldb/trunk/test/python_api/watchpoint/TestSetWatchpoint.py
lldb/trunk/test/python_api/watchpoint/TestWatchpointIgnoreCount.py
lldb/trunk/test/python_api/watchpoint/TestWatchpointIter.py
lldb/trunk/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py
lldb/trunk/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py
lldb/trunk/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py
lldb/trunk/test/redo.py
lldb/trunk/test/settings/TestSettings.py
lldb/trunk/test/settings/quoting/TestQuoting.py
lldb/trunk/test/source-manager/TestSourceManager.py
lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py
lldb/trunk/test/test_results.py
lldb/trunk/test/test_runner/test/inferior.py
lldb/trunk/test/tools/lldb-mi/TestMiExit.py
lldb/trunk/test/tools/lldb-mi/TestMiFile.py
lldb/trunk/test/tools/lldb-mi/TestMiGdbSetShow.py
lldb/trunk/test/tools/lldb-mi/TestMiLibraryLoaded.py
lldb/trunk/test/tools/lldb-mi/TestMiPrompt.py
lldb/trunk/test/tools/lldb-mi/breakpoint/TestMiBreak.py
lldb/trunk/test/tools/lldb-mi/control/TestMiExec.py
lldb/trunk/test/tools/lldb-mi/data/TestMiData.py
lldb/trunk/test/tools/lldb-mi/interpreter/TestMiCliSupport.py
lldb/trunk/test/tools/lldb-mi/interpreter/TestMiInterpreterExec.py
lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py
lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py
lldb/trunk/test/tools/lldb-mi/stack/TestMiStack.py
lldb/trunk/test/tools/lldb-mi/startup_options/TestMiStartupOptions.py
lldb/trunk/test/tools/lldb-mi/symbol/TestMiSymbol.py
lldb/trunk/test/tools/lldb-mi/syntax/TestMiSyntax.py
lldb/trunk/test/tools/lldb-mi/target/TestMiTarget.py
lldb/trunk/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py
lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py
lldb/trunk/test/tools/lldb-server/TestGDBRemoteMemoryRead.py
lldb/trunk/test/tools/lldb-server/TestGdbRemoteAttach.py
lldb/trunk/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py
lldb/trunk/test/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py
lldb/trunk/test/tools/lldb-server/TestGdbRemoteKill.py
lldb/trunk/test/tools/lldb-server/TestGdbRemoteProcessInfo.py
lldb/trunk/test/tools/lldb-server/TestGdbRemoteRegisterState.py
lldb/trunk/test/tools/lldb-server/TestGdbRemoteSingleStep.py
lldb/trunk/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
lldb/trunk/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py
lldb/trunk/test/tools/lldb-server/TestGdbRemote_vCont.py
lldb/trunk/test/tools/lldb-server/TestLldbGdbServer.py
lldb/trunk/test/tools/lldb-server/commandline/TestStubReverseConnect.py
lldb/trunk/test/tools/lldb-server/commandline/TestStubSetSID.py
lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py
lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py
lldb/trunk/test/tools/lldb-server/lldbgdbserverutils.py
lldb/trunk/test/tools/lldb-server/socket_packet_pump.py
lldb/trunk/test/tools/lldb-server/test/test_lldbgdbserverutils.py
lldb/trunk/test/types/AbstractBase.py
lldb/trunk/test/types/HideTestFailures.py
lldb/trunk/test/types/TestFloatTypes.py
lldb/trunk/test/types/TestFloatTypesExpr.py
lldb/trunk/test/types/TestIntegerTypes.py
lldb/trunk/test/types/TestIntegerTypesExpr.py
lldb/trunk/test/types/TestRecursiveTypes.py
lldb/trunk/test/warnings/uuid/TestAddDsymCommand.py
Modified: lldb/trunk/test/android/platform/TestDefaultCacheLineSize.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/android/platform/TestDefaultCacheLineSize.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/android/platform/TestDefaultCacheLineSize.py (original)
+++ lldb/trunk/test/android/platform/TestDefaultCacheLineSize.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Verify the default cache line size for android targets
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py (original)
+++ lldb/trunk/test/api/check_public_api_headers/TestPublicAPIHeaders.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@
There should be nothing unwanted there and a simpe main.cpp which includes SB*.h
should compile and link with the LLDB framework."""
+from __future__ import print_function
+
import lldb_shared
import os, re
@@ -72,7 +74,7 @@ class SBDirCheckerCase(TestBase):
env_cmd = "settings set target.env-vars %s=%s" %(self.dylibPath, self.getLLDBLibraryEnvVal())
if self.TraceOn():
- print "Set environment to: ", env_cmd
+ print("Set environment to: ", env_cmd)
self.runCmd(env_cmd)
self.addTearDownHook(lambda: self.dbg.HandleCommand("settings remove target.env-vars %s" % self.dylibPath))
Modified: lldb/trunk/test/api/multiple-debuggers/TestMultipleDebuggers.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/api/multiple-debuggers/TestMultipleDebuggers.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/api/multiple-debuggers/TestMultipleDebuggers.py (original)
+++ lldb/trunk/test/api/multiple-debuggers/TestMultipleDebuggers.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test the lldb public C++ api when doing multiple debug sessions simultaneously."""
+from __future__ import print_function
+
import lldb_shared
import os, re
@@ -40,7 +42,7 @@ class TestMultipleSimultaneousDebuggers(
# will recognize it as a test failure.
if self.TraceOn():
- print "Running test %s" % self.driver_exe
+ print("Running test %s" % self.driver_exe)
check_call([self.driver_exe, self.inferior_exe], env=env)
else:
with open(os.devnull, 'w') as fnull:
Modified: lldb/trunk/test/api/multithreaded/TestMultithreaded.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/api/multithreaded/TestMultithreaded.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/api/multithreaded/TestMultithreaded.py (original)
+++ lldb/trunk/test/api/multithreaded/TestMultithreaded.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test the lldb public C++ api breakpoint callbacks."""
+from __future__ import print_function
+
import lldb_shared
import os, re
@@ -82,7 +84,7 @@ class SBBreakpointCallbackCase(TestBase)
env = {self.dylibPath : self.getLLDBLibraryEnvVal()}
if self.TraceOn():
- print "Running test %s" % " ".join(exe)
+ print("Running test %s" % " ".join(exe))
check_call(exe, env=env)
else:
with open(os.devnull, 'w') as fnull:
Modified: lldb/trunk/test/arm_emulation/TestEmulations.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/arm_emulation/TestEmulations.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/arm_emulation/TestEmulations.py (original)
+++ lldb/trunk/test/arm_emulation/TestEmulations.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test some ARM instruction emulation.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -46,7 +48,7 @@ class ARMEmulationTestCase(TestBase):
success = insn.TestEmulation (stream, filename);
output = stream.GetData();
if self.TraceOn():
- print '\nRunning test ' + os.path.basename(filename)
- print output
+ print('\nRunning test ' + os.path.basename(filename))
+ print(output)
self.assertTrue (success, 'Emulation test succeeded.')
Modified: lldb/trunk/test/attic/tester.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/attic/tester.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/attic/tester.py (original)
+++ lldb/trunk/test/attic/tester.py Fri Oct 23 12:04:29 2015
@@ -1,13 +1,15 @@
#!/usr/bin/env python
# -*- coding: utf8 -*-
+from __future__ import print_function
+
import math, os.path, re, sys, time, unittest
def setupSysPath():
testPath = sys.path[0]
rem = re.match("(^.*/)test$", testPath)
if not rem:
- print "This script expects to reside in .../test."
+ print("This script expects to reside in .../test.")
sys.exit(-1)
lldbBasePath = rem.group(1)
lldbDebugPythonPath = "build/Debug/LLDB.framework/Resources/Python"
@@ -18,8 +20,8 @@ def setupSysPath():
if os.path.isfile(lldbReleasePythonPath + "/lldb.py"):
lldbPythonPath = lldbReleasePythonPath
if not lldbPythonPath:
- print "This script requires lldb.py to be in either " + lldbDebugPythonPath,
- print "or" + lldbReleasePythonPath
+ print("This script requires lldb.py to be in either " + lldbDebugPythonPath, end='')
+ print("or" + lldbReleasePythonPath)
sys.exit(-1)
sys.path.append(lldbPythonPath)
@@ -72,8 +74,8 @@ class ExecutionTimes:
sampleVariance += (time - sampleMean) ** 2
sampleVariance /= sampleCount
sampleStandardDeviation = math.sqrt(sampleVariance)
- print key + ": [" + prettyTime(sampleMin) + ", " + prettyTime(sampleMax) + "] ",
- print "µ " + prettyTime(sampleMean) + ", Ï " + prettyTime(sampleStandardDeviation)
+ print(key + ": [" + prettyTime(sampleMin) + ", " + prettyTime(sampleMax) + "] ", end='')
+ print("µ " + prettyTime(sampleMean) + ", Ï " + prettyTime(sampleStandardDeviation))
m_executionTimes = None
setupSysPath()
@@ -86,7 +88,7 @@ class LLDBTestCase(unittest.TestCase):
debugger.SetAsync(True)
self.m_commandInterpreter = debugger.GetCommandInterpreter()
if not self.m_commandInterpreter:
- print "Couldn't get the command interpreter"
+ print("Couldn't get the command interpreter")
sys.exit(-1)
def runCommand(self, command, component):
res = lldb.SBCommandReturnObject()
@@ -104,7 +106,7 @@ class LLDBTestCase(unittest.TestCase):
class SanityCheckTestCase(LLDBTestCase):
def runTest(self):
ret = self.runCommand("show arch", "show-arch")
- #print ret
+ #print(ret)
def getCategories(self):
return []
Modified: lldb/trunk/test/benchmarks/continue/TestBenchmarkContinue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/continue/TestBenchmarkContinue.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/continue/TestBenchmarkContinue.py (original)
+++ lldb/trunk/test/benchmarks/continue/TestBenchmarkContinue.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -61,4 +63,4 @@ class TestBenchmarkContinue(BenchBase):
lldbutil.continue_to_breakpoint(self.process(), bkpt)
lldbutil_sw.stop()
- print "runCmd: %s\nlldbutil: %s" % (runCmd_sw,lldbutil_sw)
+ print("runCmd: %s\nlldbutil: %s" % (runCmd_sw,lldbutil_sw))
Modified: lldb/trunk/test/benchmarks/disassembly/TestDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/disassembly/TestDisassembly.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/disassembly/TestDisassembly.py (original)
+++ lldb/trunk/test/benchmarks/disassembly/TestDisassembly.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Disassemble lldb's Driver::MainLoop() functions comparing lldb against gdb."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -42,32 +44,32 @@ class DisassembleDriverMainLoop(BenchBas
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_run_lldb_then_gdb(self):
"""Test disassembly on a large function with lldb vs. gdb."""
- print
- print "lldb path: %s" % lldbtest_config.lldbExec
- print "gdb path: %s" % self.gdbExec
+ print()
+ print("lldb path: %s" % lldbtest_config.lldbExec)
+ print("gdb path: %s" % self.gdbExec)
- print
+ print()
self.run_lldb_disassembly(self.exe, self.function, self.count)
- print "lldb benchmark:", self.stopwatch
+ print("lldb benchmark:", self.stopwatch)
self.run_gdb_disassembly(self.exe, self.function, self.count)
- print "gdb benchmark:", self.stopwatch
- print "lldb_avg/gdb_avg: %f" % (self.lldb_avg/self.gdb_avg)
+ print("gdb benchmark:", self.stopwatch)
+ print("lldb_avg/gdb_avg: %f" % (self.lldb_avg/self.gdb_avg))
@benchmarks_test
@no_debug_info_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_run_gdb_then_lldb(self):
"""Test disassembly on a large function with lldb vs. gdb."""
- print
- print "lldb path: %s" % lldbtest_config.lldbExec
- print "gdb path: %s" % self.gdbExec
+ print()
+ print("lldb path: %s" % lldbtest_config.lldbExec)
+ print("gdb path: %s" % self.gdbExec)
- print
+ print()
self.run_gdb_disassembly(self.exe, self.function, self.count)
- print "gdb benchmark:", self.stopwatch
+ print("gdb benchmark:", self.stopwatch)
self.run_lldb_disassembly(self.exe, self.function, self.count)
- print "lldb benchmark:", self.stopwatch
- print "lldb_avg/gdb_avg: %f" % (self.lldb_avg/self.gdb_avg)
+ print("lldb benchmark:", self.stopwatch)
+ print("lldb_avg/gdb_avg: %f" % (self.lldb_avg/self.gdb_avg))
def run_lldb_disassembly(self, exe, function, count):
import pexpect
@@ -107,7 +109,7 @@ class DisassembleDriverMainLoop(BenchBas
self.lldb_avg = self.stopwatch.avg()
if self.TraceOn():
- print "lldb disassembly benchmark:", str(self.stopwatch)
+ print("lldb disassembly benchmark:", str(self.stopwatch))
self.child = None
def run_gdb_disassembly(self, exe, function, count):
@@ -150,5 +152,5 @@ class DisassembleDriverMainLoop(BenchBas
self.gdb_avg = self.stopwatch.avg()
if self.TraceOn():
- print "gdb disassembly benchmark:", str(self.stopwatch)
+ print("gdb disassembly benchmark:", str(self.stopwatch))
self.child = None
Modified: lldb/trunk/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py (original)
+++ lldb/trunk/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
inferior and traverses the stack for thread0 to arrive at frame with function
'MainLoop'. It is important to specify an lldb executable as the inferior."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -26,9 +28,9 @@ class AttachThenDisassemblyBench(BenchBa
@no_debug_info_test
def test_attach_then_disassembly(self):
"""Attach to a spawned lldb process then run disassembly benchmarks."""
- print
+ print()
self.run_lldb_attach_then_disassembly(self.exe, self.count)
- print "lldb disassembly benchmark:", self.stopwatch
+ print("lldb disassembly benchmark:", self.stopwatch)
def run_lldb_attach_then_disassembly(self, exe, count):
target = self.dbg.CreateTarget(exe)
@@ -38,7 +40,7 @@ class AttachThenDisassemblyBench(BenchBa
popen = subprocess.Popen([exe, self.lldbOption],
stdout = open(os.devnull, 'w') if not self.TraceOn() else None)
if self.TraceOn():
- print "pid of spawned process: %d" % popen.pid
+ print("pid of spawned process: %d" % popen.pid)
# Attach to the launched lldb process.
listener = lldb.SBListener("my.attach.listener")
@@ -52,12 +54,12 @@ class AttachThenDisassemblyBench(BenchBa
i = 0
found = False
for f in thread0:
- #print "frame#%d %s" % (i, f.GetFunctionName())
+ #print("frame#%d %s" % (i, f.GetFunctionName()))
if "MainLoop" in f.GetFunctionName():
found = True
thread0.SetSelectedFrame(i)
if self.TraceOn():
- print "Found frame#%d for function 'MainLoop'" % i
+ print("Found frame#%d for function 'MainLoop'" % i)
break
i += 1
Modified: lldb/trunk/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py (original)
+++ lldb/trunk/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Disassemble lldb's Driver::MainLoop() functions comparing Xcode 4.1 vs. 4.2's gdb."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -27,28 +29,28 @@ class XCode41Vs42GDBDisassembly(BenchBas
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_run_41_then_42(self):
"""Test disassembly on a large function with 4.1 vs. 4.2's gdb."""
- print
+ print()
self.run_gdb_disassembly(self.gdb_41_exe, self.exe, self.function, self.count)
- print "4.1 gdb benchmark:", self.stopwatch
+ print("4.1 gdb benchmark:", self.stopwatch)
self.gdb_41_avg = self.stopwatch.avg()
self.run_gdb_disassembly(self.gdb_42_exe, self.exe, self.function, self.count)
- print "4.2 gdb benchmark:", self.stopwatch
+ print("4.2 gdb benchmark:", self.stopwatch)
self.gdb_42_avg = self.stopwatch.avg()
- print "gdb_42_avg/gdb_41_avg: %f" % (self.gdb_42_avg/self.gdb_41_avg)
+ print("gdb_42_avg/gdb_41_avg: %f" % (self.gdb_42_avg/self.gdb_41_avg))
@benchmarks_test
@no_debug_info_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_run_42_then_41(self):
"""Test disassembly on a large function with 4.1 vs. 4.2's gdb."""
- print
+ print()
self.run_gdb_disassembly(self.gdb_42_exe, self.exe, self.function, self.count)
- print "4.2 gdb benchmark:", self.stopwatch
+ print("4.2 gdb benchmark:", self.stopwatch)
self.gdb_42_avg = self.stopwatch.avg()
self.run_gdb_disassembly(self.gdb_41_exe, self.exe, self.function, self.count)
- print "4.1 gdb benchmark:", self.stopwatch
+ print("4.1 gdb benchmark:", self.stopwatch)
self.gdb_41_avg = self.stopwatch.avg()
- print "gdb_42_avg/gdb_41_avg: %f" % (self.gdb_42_avg/self.gdb_41_avg)
+ print("gdb_42_avg/gdb_41_avg: %f" % (self.gdb_42_avg/self.gdb_41_avg))
def run_gdb_disassembly(self, gdb_exe_path, exe, function, count):
import pexpect
@@ -89,5 +91,5 @@ class XCode41Vs42GDBDisassembly(BenchBas
pass
if self.TraceOn():
- print "gdb disassembly benchmark:", str(self.stopwatch)
+ print("gdb disassembly benchmark:", str(self.stopwatch))
self.child = None
Modified: lldb/trunk/test/benchmarks/expression/TestExpressionCmd.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/expression/TestExpressionCmd.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/expression/TestExpressionCmd.py (original)
+++ lldb/trunk/test/benchmarks/expression/TestExpressionCmd.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test lldb's expression evaluations and collect statistics."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -25,9 +27,9 @@ class ExpressionEvaluationCase(BenchBase
self.build()
self.exe_name = 'a.out'
- print
+ print()
self.run_lldb_repeated_exprs(self.exe_name, self.count)
- print "lldb expr cmd benchmark:", self.stopwatch
+ print("lldb expr cmd benchmark:", self.stopwatch)
def run_lldb_repeated_exprs(self, exe_name, count):
import pexpect
Modified: lldb/trunk/test/benchmarks/expression/TestRepeatedExprs.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/expression/TestRepeatedExprs.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/expression/TestRepeatedExprs.py (original)
+++ lldb/trunk/test/benchmarks/expression/TestRepeatedExprs.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test evaluating expressions repeatedly comparing lldb against gdb."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -27,12 +29,12 @@ class RepeatedExprsCase(BenchBase):
self.build()
self.exe_name = 'a.out'
- print
+ print()
self.run_lldb_repeated_exprs(self.exe_name, self.count)
- print "lldb benchmark:", self.stopwatch
+ print("lldb benchmark:", self.stopwatch)
self.run_gdb_repeated_exprs(self.exe_name, self.count)
- print "gdb benchmark:", self.stopwatch
- print "lldb_avg/gdb_avg: %f" % (self.lldb_avg/self.gdb_avg)
+ print("gdb benchmark:", self.stopwatch)
+ print("lldb_avg/gdb_avg: %f" % (self.lldb_avg/self.gdb_avg))
def run_lldb_repeated_exprs(self, exe_name, count):
import pexpect
@@ -77,7 +79,7 @@ class RepeatedExprsCase(BenchBase):
self.lldb_avg = self.stopwatch.avg()
if self.TraceOn():
- print "lldb expression benchmark:", str(self.stopwatch)
+ print("lldb expression benchmark:", str(self.stopwatch))
self.child = None
def run_gdb_repeated_exprs(self, exe_name, count):
@@ -125,5 +127,5 @@ class RepeatedExprsCase(BenchBase):
self.gdb_avg = self.stopwatch.avg()
if self.TraceOn():
- print "gdb expression benchmark:", str(self.stopwatch)
+ print("gdb expression benchmark:", str(self.stopwatch))
self.child = None
Modified: lldb/trunk/test/benchmarks/frame_variable/TestFrameVariableResponse.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/frame_variable/TestFrameVariableResponse.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/frame_variable/TestFrameVariableResponse.py (original)
+++ lldb/trunk/test/benchmarks/frame_variable/TestFrameVariableResponse.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test lldb's response time for 'frame variable' command."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -30,9 +32,9 @@ class FrameVariableResponseBench(BenchBa
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_startup_delay(self):
"""Test response time for the 'frame variable' command."""
- print
+ print()
self.run_frame_variable_bench(self.exe, self.break_spec, self.count)
- print "lldb frame variable benchmark:", self.stopwatch
+ print("lldb frame variable benchmark:", self.stopwatch)
def run_frame_variable_bench(self, exe, break_spec, count):
import pexpect
Modified: lldb/trunk/test/benchmarks/startup/TestStartupDelays.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/startup/TestStartupDelays.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/startup/TestStartupDelays.py (original)
+++ lldb/trunk/test/benchmarks/startup/TestStartupDelays.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test lldb's startup delays creating a target, setting a breakpoint, and run to breakpoint stop."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -35,11 +37,11 @@ class StartupDelaysBench(BenchBase):
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_startup_delay(self):
"""Test start up delays creating a target, setting a breakpoint, and run to breakpoint stop."""
- print
+ print()
self.run_startup_delays_bench(self.exe, self.break_spec, self.count)
- print "lldb startup delay (create fresh target) benchmark:", self.stopwatch
- print "lldb startup delay (set first breakpoint) benchmark:", self.stopwatch2
- print "lldb startup delay (run to breakpoint) benchmark:", self.stopwatch3
+ print("lldb startup delay (create fresh target) benchmark:", self.stopwatch)
+ print("lldb startup delay (set first breakpoint) benchmark:", self.stopwatch2)
+ print("lldb startup delay (run to breakpoint) benchmark:", self.stopwatch3)
def run_startup_delays_bench(self, exe, break_spec, count):
import pexpect
Modified: lldb/trunk/test/benchmarks/stepping/TestRunHooksThenSteppings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/stepping/TestRunHooksThenSteppings.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/stepping/TestRunHooksThenSteppings.py (original)
+++ lldb/trunk/test/benchmarks/stepping/TestRunHooksThenSteppings.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test lldb's stepping speed."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -21,9 +23,9 @@ class RunHooksThenSteppingsBench(BenchBa
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_lldb_runhooks_then_steppings(self):
"""Test lldb steppings on a large executable."""
- print
+ print()
self.run_lldb_runhooks_then_steppings(self.count)
- print "lldb stepping benchmark:", self.stopwatch
+ print("lldb stepping benchmark:", self.stopwatch)
def run_lldb_runhooks_then_steppings(self, count):
import pexpect
Modified: lldb/trunk/test/benchmarks/stepping/TestSteppingSpeed.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/stepping/TestSteppingSpeed.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/stepping/TestSteppingSpeed.py (original)
+++ lldb/trunk/test/benchmarks/stepping/TestSteppingSpeed.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test lldb's stepping speed."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -25,17 +27,17 @@ class SteppingSpeedBench(BenchBase):
if self.count <= 0:
self.count = 50
- #print "self.exe=%s" % self.exe
- #print "self.break_spec=%s" % self.break_spec
+ #print("self.exe=%s" % self.exe)
+ #print("self.break_spec=%s" % self.break_spec)
@benchmarks_test
@no_debug_info_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_run_lldb_steppings(self):
"""Test lldb steppings on a large executable."""
- print
+ print()
self.run_lldb_steppings(self.exe, self.break_spec, self.count)
- print "lldb stepping benchmark:", self.stopwatch
+ print("lldb stepping benchmark:", self.stopwatch)
def run_lldb_steppings(self, exe, break_spec, count):
import pexpect
Modified: lldb/trunk/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py (original)
+++ lldb/trunk/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Benchmark the turnaround time starting a debugger and run to the breakpont with lldb vs. gdb."""
+from __future__ import print_function
+
import lldb_shared
import os, sys
@@ -27,12 +29,12 @@ class CompileRunToBreakpointBench(BenchB
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
def test_run_lldb_then_gdb(self):
"""Benchmark turnaround time with lldb vs. gdb."""
- print
+ print()
self.run_lldb_turnaround(self.exe, self.function, self.count)
- print "lldb turnaround benchmark:", self.stopwatch
+ print("lldb turnaround benchmark:", self.stopwatch)
self.run_gdb_turnaround(self.exe, self.function, self.count)
- print "gdb turnaround benchmark:", self.stopwatch
- print "lldb_avg/gdb_avg: %f" % (self.lldb_avg/self.gdb_avg)
+ print("gdb turnaround benchmark:", self.stopwatch)
+ print("lldb_avg/gdb_avg: %f" % (self.lldb_avg/self.gdb_avg))
def run_lldb_turnaround(self, exe, function, count):
import pexpect
Modified: lldb/trunk/test/curses_results.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/curses_results.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/curses_results.py (original)
+++ lldb/trunk/test/curses_results.py Fri Oct 23 12:04:29 2015
@@ -130,7 +130,7 @@ class Curses(test_results.ResultsFormatt
worker_index = test_event['worker_index']
if 'event' in test_event:
check_for_one_key = True
- #print >>self.events_file, str(test_event)
+ #print(str(test_event), file=self.events_file)
event = test_event['event']
if self.status_panel:
self.status_panel.update_status('time', str(datetime.timedelta(seconds=math.floor(time.time() - self.start_time))))
Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Fri Oct 23 12:04:29 2015
@@ -902,7 +902,7 @@ def parseOptionsAndInitTestdirs():
copytree(os.path.join(scriptdir, 'make'), os.path.join(rdir, 'make'),
ignore=ignore_patterns('.svn'))
- #print "testdirs:", testdirs
+ #print("testdirs:", testdirs)
# Source the configFile if specified.
# The side effect, if any, will be felt from this point on. An example
@@ -919,7 +919,7 @@ def parseOptionsAndInitTestdirs():
if configFile:
# Pass config (a dictionary) as the locals namespace for side-effect.
execfile(configFile, globals(), config)
- #print "config:", config
+ #print("config:", config)
if "pre_flight" in config:
pre_flight = config["pre_flight"]
if not callable(pre_flight):
@@ -934,8 +934,8 @@ def parseOptionsAndInitTestdirs():
lldbtest_remote_sandbox = config["lldbtest_remote_sandbox"]
if "lldbtest_remote_shell_template" in config:
lldbtest_remote_shell_template = config["lldbtest_remote_shell_template"]
- #print "sys.stderr:", sys.stderr
- #print "sys.stdout:", sys.stdout
+ #print("sys.stderr:", sys.stderr)
+ #print("sys.stdout:", sys.stdout)
def getXcodeOutputPaths(lldbRootDirectory):
result = []
@@ -1295,7 +1295,7 @@ def visit(prefix, dir, names):
global all_tests
if set(dir.split(os.sep)).intersection(excluded):
- #print "Detected an excluded dir component: %s" % dir
+ #print("Detected an excluded dir component: %s" % dir)
return
for name in names:
@@ -1312,10 +1312,10 @@ def visit(prefix, dir, names):
if regexp:
import re
if re.search(regexp, name):
- #print "Filename: '%s' matches pattern: '%s'" % (name, regexp)
+ #print("Filename: '%s' matches pattern: '%s'" % (name, regexp))
pass
else:
- #print "Filename: '%s' does not match pattern: '%s'" % (name, regexp)
+ #print("Filename: '%s' does not match pattern: '%s'" % (name, regexp))
continue
# We found a match for our test. Add it to the suite.
@@ -1344,7 +1344,7 @@ def visit(prefix, dir, names):
# If filtered, we have a good filterspec. Add it.
if filtered:
- #print "adding filter spec %s to module %s" % (filterspec, module)
+ #print("adding filter spec %s to module %s" % (filterspec, module))
suite.addTests(
unittest2.defaultTestLoader.loadTestsFromName(filterspec, module))
continue
@@ -1761,8 +1761,8 @@ if __name__ == "__main__":
if not parsable:
sys.stderr.write("\nConfiguration: " + configString + "\n")
- #print "sys.stderr name is", sys.stderr.name
- #print "sys.stdout name is", sys.stdout.name
+ #print("sys.stderr name is", sys.stderr.name)
+ #print("sys.stdout name is", sys.stdout.name)
# First, write out the number of collected test cases.
if not parsable:
Modified: lldb/trunk/test/dotest_channels.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest_channels.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/dotest_channels.py (original)
+++ lldb/trunk/test/dotest_channels.py Fri Oct 23 12:04:29 2015
@@ -14,6 +14,8 @@ This module provides asyncore channels u
framework.
"""
+from __future__ import print_function
+
import lldb_shared
import asyncore
@@ -121,7 +123,7 @@ class UnpicklingForwardingReaderChannel(
def handle_read(self):
data = self.recv(8192)
- # print 'driver socket READ: %d bytes' % len(data)
+ # print('driver socket READ: %d bytes' % len(data))
while data and (len(data) > 0):
# If we're reading the header, gather header bytes.
@@ -131,7 +133,7 @@ class UnpicklingForwardingReaderChannel(
data = self.consume_payload_bytes(data)
def handle_close(self):
- # print "socket reader: closing port"
+ # print("socket reader: closing port")
self.close()
@@ -167,7 +169,7 @@ class UnpicklingForwardingListenerChanne
def handle_accept(self):
(sock, addr) = self.socket.accept()
if sock and addr:
- # print 'Incoming connection from %s' % repr(addr)
+ # print('Incoming connection from %s' % repr(addr))
self.handler = UnpicklingForwardingReaderChannel(
sock, self.async_map, self.forwarding_func)
Modified: lldb/trunk/test/driver/batch_mode/TestBatchMode.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/driver/batch_mode/TestBatchMode.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/driver/batch_mode/TestBatchMode.py (original)
+++ lldb/trunk/test/driver/batch_mode/TestBatchMode.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that the lldb driver's batch mode works correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/expression_command/call-function/TestCallStdStringFunction.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/call-function/TestCallStdStringFunction.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/call-function/TestCallStdStringFunction.py (original)
+++ lldb/trunk/test/expression_command/call-function/TestCallStdStringFunction.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test calling std::String member functions.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/call-function/TestCallStopAndContinue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/call-function/TestCallStopAndContinue.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/call-function/TestCallStopAndContinue.py (original)
+++ lldb/trunk/test/expression_command/call-function/TestCallStopAndContinue.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test calling a function, stopping in the call, continue and gather the result on stop.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/call-function/TestCallUserDefinedFunction.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/call-function/TestCallUserDefinedFunction.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/call-function/TestCallUserDefinedFunction.py (original)
+++ lldb/trunk/test/expression_command/call-function/TestCallUserDefinedFunction.py Fri Oct 23 12:04:29 2015
@@ -7,6 +7,8 @@ Note:
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/call-restarts/TestCallThatRestarts.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/call-restarts/TestCallThatRestarts.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/call-restarts/TestCallThatRestarts.py (original)
+++ lldb/trunk/test/expression_command/call-restarts/TestCallThatRestarts.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test calling a function that hits a signal set to auto-restart, make sure the call completes.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/call-throws/TestCallThatThrows.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/call-throws/TestCallThatThrows.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/call-throws/TestCallThatThrows.py (original)
+++ lldb/trunk/test/expression_command/call-throws/TestCallThatThrows.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test calling a function that throws an ObjC exception, make sure that it doesn't propagate the exception.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/char/TestExprsChar.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/char/TestExprsChar.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/char/TestExprsChar.py (original)
+++ lldb/trunk/test/expression_command/char/TestExprsChar.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py (original)
+++ lldb/trunk/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that we are able to evaluate expressions when the inferior is blocked in a syscall"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/expression_command/formatters/TestFormatters.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/formatters/TestFormatters.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/formatters/TestFormatters.py (original)
+++ lldb/trunk/test/expression_command/formatters/TestFormatters.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test using LLDB data formatters with frozen objects coming from the expression parser.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/issue_11588/Test11588.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/issue_11588/Test11588.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/issue_11588/Test11588.py (original)
+++ lldb/trunk/test/expression_command/issue_11588/Test11588.py Fri Oct 23 12:04:29 2015
@@ -4,6 +4,8 @@ valobj.AddressOf() returns None when an
expected in a SyntheticChildrenProvider
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/expression_command/options/TestExprOptions.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/options/TestExprOptions.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/options/TestExprOptions.py (original)
+++ lldb/trunk/test/expression_command/options/TestExprOptions.py Fri Oct 23 12:04:29 2015
@@ -7,6 +7,8 @@ o test_expr_options:
Test expression command options.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py (original)
+++ lldb/trunk/test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that we can p *objcObject
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py (original)
+++ lldb/trunk/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that we can have persistent pointer variables
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/persistent_types/TestNestedPersistentTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/persistent_types/TestNestedPersistentTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/persistent_types/TestNestedPersistentTypes.py (original)
+++ lldb/trunk/test/expression_command/persistent_types/TestNestedPersistentTypes.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that nested persistent types work.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/expression_command/persistent_types/TestPersistentTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/persistent_types/TestPersistentTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/persistent_types/TestPersistentTypes.py (original)
+++ lldb/trunk/test/expression_command/persistent_types/TestPersistentTypes.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that lldb persistent types works correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/expression_command/persistent_variables/TestPersistentVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/persistent_variables/TestPersistentVariables.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/persistent_variables/TestPersistentVariables.py (original)
+++ lldb/trunk/test/expression_command/persistent_variables/TestPersistentVariables.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that lldb persistent variables works correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/expression_command/po_verbosity/TestPoVerbosity.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/po_verbosity/TestPoVerbosity.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/po_verbosity/TestPoVerbosity.py (original)
+++ lldb/trunk/test/expression_command/po_verbosity/TestPoVerbosity.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that the po command acts correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/radar_8638051/Test8638051.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/radar_8638051/Test8638051.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/radar_8638051/Test8638051.py (original)
+++ lldb/trunk/test/expression_command/radar_8638051/Test8638051.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the robustness of lldb expression parser.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/expression_command/radar_9531204/TestPrintfAfterUp.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/radar_9531204/TestPrintfAfterUp.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/radar_9531204/TestPrintfAfterUp.py (original)
+++ lldb/trunk/test/expression_command/radar_9531204/TestPrintfAfterUp.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
The evaluating printf(...) after break stop and then up a stack frame.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/expression_command/radar_9673664/TestExprHelpExamples.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/radar_9673664/TestExprHelpExamples.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/radar_9673664/TestExprHelpExamples.py (original)
+++ lldb/trunk/test/expression_command/radar_9673664/TestExprHelpExamples.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test example snippets from the lldb 'help expression' output.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/expression_command/test/TestExprs.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/test/TestExprs.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/test/TestExprs.py (original)
+++ lldb/trunk/test/expression_command/test/TestExprs.py Fri Oct 23 12:04:29 2015
@@ -11,6 +11,8 @@ o test_expr_commands_can_handle_quotes:
Throw some expression commands with quotes at lldb.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/expression_command/test/TestExprs2.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/test/TestExprs2.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/test/TestExprs2.py (original)
+++ lldb/trunk/test/expression_command/test/TestExprs2.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test some more expression commands.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/expression_command/timeout/TestCallWithTimeout.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/timeout/TestCallWithTimeout.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/timeout/TestCallWithTimeout.py (original)
+++ lldb/trunk/test/expression_command/timeout/TestCallWithTimeout.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test calling a function that waits a while, and make sure the timeout option to expr works.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py (original)
+++ lldb/trunk/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py Fri Oct 23 12:04:29 2015
@@ -4,6 +4,8 @@ Regression test for <rdar://problem/8981
The expression parser's type search only looks in the current compilation unit for types.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py (original)
+++ lldb/trunk/test/functionalities/abbreviation/TestAbbreviations.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test some lldb command abbreviations and aliases for proper resolution.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -79,9 +81,9 @@ class AbbreviationsTestCase(TestBase):
self.assertFalse(result.Succeeded())
# Check a command that wants the raw input.
- command_interpreter.ResolveCommand(r'''sc print "\n\n\tHello!\n"''', result)
+ command_interpreter.ResolveCommand(r'''sc print("\n\n\tHello!\n")''', result)
self.assertTrue(result.Succeeded())
- self.assertEqual(r'''script print "\n\n\tHello!\n"''', result.GetOutput())
+ self.assertEqual(r'''script print("\n\n\tHello!\n")''', result.GetOutput())
# Prompt changing stuff should be tested, but this doesn't seem like the
# right test to do it in. It has nothing to do with aliases or abbreviations.
Modified: lldb/trunk/test/functionalities/abbreviation/TestCommonShortSpellings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/abbreviation/TestCommonShortSpellings.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/abbreviation/TestCommonShortSpellings.py (original)
+++ lldb/trunk/test/functionalities/abbreviation/TestCommonShortSpellings.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@ Test some lldb command abbreviations to
many commands remain available even after we add/delete commands in the future.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/archives/TestBSDArchives.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/archives/TestBSDArchives.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/archives/TestBSDArchives.py (original)
+++ lldb/trunk/test/functionalities/archives/TestBSDArchives.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test breaking inside functions defined within a BSD archive file libfoo.a."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/asan/TestMemoryHistory.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/asan/TestMemoryHistory.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/asan/TestMemoryHistory.py (original)
+++ lldb/trunk/test/functionalities/asan/TestMemoryHistory.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that ASan memory history provider returns correct stack traces
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/asan/TestReportData.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/asan/TestReportData.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/asan/TestReportData.py (original)
+++ lldb/trunk/test/functionalities/asan/TestReportData.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the AddressSanitizer runtime support for report breakpoint and data extraction.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/attach_resume/TestAttachResume.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/attach_resume/TestAttachResume.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/attach_resume/TestAttachResume.py (original)
+++ lldb/trunk/test/functionalities/attach_resume/TestAttachResume.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test process attach/resume.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/avoids-fd-leak/TestFdLeak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/avoids-fd-leak/TestFdLeak.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/avoids-fd-leak/TestFdLeak.py (original)
+++ lldb/trunk/test/functionalities/avoids-fd-leak/TestFdLeak.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test whether a process started by lldb has no extra file descriptors open.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/backticks/TestBackticksWithoutATarget.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/backticks/TestBackticksWithoutATarget.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/backticks/TestBackticksWithoutATarget.py (original)
+++ lldb/trunk/test/functionalities/backticks/TestBackticksWithoutATarget.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that backticks without a target should work (not infinite looping).
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb breakpoint command add/list/delete.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -50,7 +52,7 @@ class BreakpointCommandTestCase(TestBase
# Now add callbacks for the breakpoints just created.
self.runCmd("breakpoint command add -s command -o 'frame variable --show-types --scope' 1 4")
- self.runCmd("breakpoint command add -s python -o 'here = open(\"output.txt\", \"w\"); print >> here, \"lldb\"; here.close()' 2")
+ self.runCmd("breakpoint command add -s python -o 'here = open(\"output.txt\", \"w\"); print(\"lldb\", file=here); here.close()' 2")
self.runCmd("breakpoint command add --python-function bktptcmd.function 3")
# Check that the breakpoint commands are correctly set.
@@ -72,7 +74,7 @@ class BreakpointCommandTestCase(TestBase
self.expect("breakpoint command list 2", "Breakpoint 2 command ok",
substrs = ["Breakpoint commands:",
"here = open",
- "print >> here",
+ "print(file=here)",
"here.close()"])
self.expect("breakpoint command list 3", "Breakpoint 3 command ok",
substrs = ["Breakpoint commands:",
@@ -176,7 +178,7 @@ class BreakpointCommandTestCase(TestBase
lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True)
# Now add callbacks for the breakpoints just created.
- self.runCmd("breakpoint command add -s python -o 'here = open(\"output-2.txt\", \"w\"); print >> here, frame; print >> here, bp_loc; here.close()' 1")
+ self.runCmd("breakpoint command add -s python -o 'here = open(\"output-2.txt\", \"w\"); print(frame, file=here); print(bp_loc, file=here); here.close()' 1")
# Remove 'output-2.txt' if it already exists.
Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that you can set breakpoint commands successfully with the Python API's:
"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -49,7 +51,7 @@ class PythonBreakpointCommandSettingTest
got_one_in_B = False
for idx in range(0, num_locations):
comp_unit = no_files_bkpt.GetLocationAtIndex(idx).GetAddress().GetSymbolContext(lldb.eSymbolContextCompUnit).GetCompileUnit().GetFileSpec()
- print "Got comp unit: ", comp_unit.GetFilename()
+ print("Got comp unit: ", comp_unit.GetFilename())
if comp_unit.GetFilename() == "a.c":
got_one_in_A = True
elif comp_unit.GetFilename() == "b.c":
@@ -64,7 +66,7 @@ class PythonBreakpointCommandSettingTest
error = body_bkpt.SetScriptCallbackBody("\
import TestBreakpointCommandsFromPython\n\
TestBreakpointCommandsFromPython.PythonBreakpointCommandSettingTestCase.my_var = 20\n\
-print 'Hit breakpoint'")
+print('Hit breakpoint')")
self.assertTrue (error.Success(), "Failed to set the script callback body: %s."%(error.GetCString()))
self.dbg.HandleCommand("command script import --allow-reload ./bktptcmd.py")
Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test _regexp-break command which uses regular expression matching to dispatch to other built in breakpoint commands.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_command/bktptcmd.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_command/bktptcmd.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_command/bktptcmd.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_command/bktptcmd.py Fri Oct 23 12:04:29 2015
@@ -1,4 +1,6 @@
+from __future__ import print_function
+
def function(frame, bp_loc, dict):
there = open("output2.txt", "w");
- print >> there, "lldb";
+ print("lldb", file=there)
there.close()
Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test breakpoint conditions with 'breakpoint modify -c <expr> id'.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -126,7 +128,7 @@ class BreakpointConditionsTestCase(TestB
# Now create a breakpoint on main.c by name 'c'.
breakpoint = target.BreakpointCreateByName('c', 'a.out')
- #print "breakpoint:", breakpoint
+ #print("breakpoint:", breakpoint)
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb breakpoint ids.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test breakpoint ignore count features.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test breakpoint commands for a breakpoint ID with multiple locations.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test breakpoint command for different options.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py Fri Oct 23 12:04:29 2015
@@ -1,6 +1,8 @@
"""
Test breakpoint command with AT_comp_dir set to symbolic link.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/breakpoint/consecutive_breakpoins/TestConsecutiveBreakpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/consecutive_breakpoins/TestConsecutiveBreakpoints.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/consecutive_breakpoins/TestConsecutiveBreakpoints.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/consecutive_breakpoins/TestConsecutiveBreakpoints.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test continue from a breakpoint when there is a breakpoint on the next instruction also.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/functionalities/breakpoint/cpp/TestCPPBreakpointLocations.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/cpp/TestCPPBreakpointLocations.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/cpp/TestCPPBreakpointLocations.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/cpp/TestCPPBreakpointLocations.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb breakpoint ids.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -32,7 +34,7 @@ class TestCPPBreakpointLocations(TestBas
for name in names:
found = name in bp_loc_names
if not found:
- print "Didn't find '%s' in: %s" % (name, bp_loc_names)
+ print("Didn't find '%s' in: %s" % (name, bp_loc_names))
self.assertTrue (found, "Make sure we find all required locations")
def breakpoint_id_tests (self):
Modified: lldb/trunk/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/cpp_exception/TestCPPExceptionBreakpoint.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that you can set breakpoint and hit the C++ language exception breakpoint
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test breakpoint commands set before we have a target
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@ Test that inlined breakpoints (breakpoin
another source file) works correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/breakpoint/objc/TestObjCBreakpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/breakpoint/objc/TestObjCBreakpoints.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/breakpoint/objc/TestObjCBreakpoints.py (original)
+++ lldb/trunk/test/functionalities/breakpoint/objc/TestObjCBreakpoints.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@ Test that objective-c constant strings a
parser.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/command_history/TestCommandHistory.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_history/TestCommandHistory.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_history/TestCommandHistory.py (original)
+++ lldb/trunk/test/functionalities/command_history/TestCommandHistory.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the command history mechanism
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py (original)
+++ lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb 'commands regex' command which allows the user to create a regular expression command.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/command_script/TestCommandScript.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_script/TestCommandScript.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_script/TestCommandScript.py (original)
+++ lldb/trunk/test/functionalities/command_script/TestCommandScript.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb Python commands.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/command_script/import/TestImport.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_script/import/TestImport.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_script/import/TestImport.py (original)
+++ lldb/trunk/test/functionalities/command_script/import/TestImport.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test custom import command to import files by path."""
+from __future__ import print_function
+
import lldb_shared
import os, sys, time
Modified: lldb/trunk/test/functionalities/command_script/import/bar/bar.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_script/import/bar/bar.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_script/import/bar/bar.py (original)
+++ lldb/trunk/test/functionalities/command_script/import/bar/bar.py Fri Oct 23 12:04:29 2015
@@ -1,6 +1,8 @@
+from __future__ import print_function
+
def bar_function(debugger, args, result, dict):
global UtilityModule
- print >>result, (UtilityModule.barutil_function("bar told me " + args))
+ print(UtilityModule.barutil_function("bar told me " + args), file=result)
return None
def __lldb_init_module(debugger, session_dict):
Modified: lldb/trunk/test/functionalities/command_script/import/foo/bar/foobar.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_script/import/foo/bar/foobar.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_script/import/foo/bar/foobar.py (original)
+++ lldb/trunk/test/functionalities/command_script/import/foo/bar/foobar.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
def foo_function(debugger, args, result, dict):
- print >>result, ("foobar says " + args)
+ print("foobar says " + args, file=result)
return None
Modified: lldb/trunk/test/functionalities/command_script/import/foo/foo.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_script/import/foo/foo.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_script/import/foo/foo.py (original)
+++ lldb/trunk/test/functionalities/command_script/import/foo/foo.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
def foo_function(debugger, args, result, dict):
- print >>result, ("foo says " + args)
+ print("foo says " + args, file=result)
return None
Modified: lldb/trunk/test/functionalities/command_script/import/foo/foo2.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_script/import/foo/foo2.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_script/import/foo/foo2.py (original)
+++ lldb/trunk/test/functionalities/command_script/import/foo/foo2.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
+from __future__ import print_function
+
def foo2_function(debugger, args, result, dict):
- print >>result, ("foo2 says " + args)
+ print("foo2 says " + args, file=result)
return None
def __lldb_init_module(debugger, session_dict):
Modified: lldb/trunk/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py (original)
+++ lldb/trunk/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Check that we handle an ImportError in a special way when command script importing files."""
+from __future__ import print_function
+
import lldb_shared
import os, sys, time
Modified: lldb/trunk/test/functionalities/command_script/mysto.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_script/mysto.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_script/mysto.py (original)
+++ lldb/trunk/test/functionalities/command_script/mysto.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb
import sys
import os
@@ -8,11 +10,11 @@ def StepOver(debugger, args, result, dic
Step over a given number of times instead of only just once
"""
arg_split = args.split(" ")
- print type(arg_split)
+ print(type(arg_split))
count = int(arg_split[0])
for i in range(0,count):
debugger.GetSelectedTarget().GetProcess().GetSelectedThread().StepOver(lldb.eOnlyThisThread)
- print "step<%d>"%i
+ print("step<%d>"%i)
def __lldb_init_module(debugger, session_dict):
# by default, --synchronicity is set to synchronous
Modified: lldb/trunk/test/functionalities/command_script/welcome.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_script/welcome.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_script/welcome.py (original)
+++ lldb/trunk/test/functionalities/command_script/welcome.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,4 @@
+from __future__ import print_function
import lldb, sys
class WelcomeCommand(object):
@@ -8,7 +9,7 @@ class WelcomeCommand(object):
return "Just a docstring for welcome_impl\nA command that says hello to LLDB users"
def __call__(self, debugger, args, exe_ctx, result):
- print >>result, ('Hello ' + args + ', welcome to LLDB');
+ print('Hello ' + args + ', welcome to LLDB', file=result);
return None;
class TargetnameCommand(object):
@@ -18,7 +19,7 @@ class TargetnameCommand(object):
def __call__(self, debugger, args, exe_ctx, result):
target = debugger.GetSelectedTarget()
file = target.GetExecutable()
- print >>result, ('Current target ' + file.GetFilename())
+ print('Current target ' + file.GetFilename(), file=result)
if args == 'fail':
result.SetError('a test for error in command')
@@ -27,19 +28,19 @@ class TargetnameCommand(object):
def print_wait_impl(debugger, args, result, dict):
result.SetImmediateOutputFile(sys.stdout)
- print >>result, ('Trying to do long task..')
+ print('Trying to do long task..', file=result)
import time
time.sleep(1)
- print >>result, ('Still doing long task..')
+ print('Still doing long task..', file=result)
time.sleep(1)
- print >>result, ('Done; if you saw the delays I am doing OK')
+ print('Done; if you saw the delays I am doing OK', file=result)
def check_for_synchro(debugger, args, result, dict):
if debugger.GetAsync() == True:
- print >>result, ('I am running async')
+ print('I am running async', file=result)
if debugger.GetAsync() == False:
- print >>result, ('I am running sync')
+ print('I am running sync', file=result)
def takes_exe_ctx(debugger, args, exe_ctx, result, dict):
- print >>result, str(exe_ctx.GetTarget())
+ print(str(exe_ctx.GetTarget()), file=result)
Modified: lldb/trunk/test/functionalities/command_source/TestCommandSource.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_source/TestCommandSource.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_source/TestCommandSource.py (original)
+++ lldb/trunk/test/functionalities/command_source/TestCommandSource.py Fri Oct 23 12:04:29 2015
@@ -4,6 +4,8 @@ Test that lldb command "command source"
See also http://llvm.org/viewvc/llvm-project?view=rev&revision=109673.
"""
+from __future__ import print_function
+
import lldb_shared
import os, sys
Modified: lldb/trunk/test/functionalities/command_source/my.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_source/my.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_source/my.py (original)
+++ lldb/trunk/test/functionalities/command_source/my.py Fri Oct 23 12:04:29 2015
@@ -1,4 +1,6 @@
+from __future__ import print_function
+
def date():
import datetime
today = datetime.date.today()
- print today
+ print(today)
Modified: lldb/trunk/test/functionalities/completion/TestCompletion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/completion/TestCompletion.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/completion/TestCompletion.py (original)
+++ lldb/trunk/test/functionalities/completion/TestCompletion.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the lldb command line completion mechanism.
"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -301,13 +303,13 @@ class CommandLineCompletionTestCase(Test
with open('child_send.txt', 'r') as fs:
if self.TraceOn():
- print "\n\nContents of child_send.txt:"
- print fs.read()
+ print("\n\nContents of child_send.txt:")
+ print(fs.read())
with open('child_read.txt', 'r') as fr:
from_child = fr.read()
if self.TraceOn():
- print "\n\nContents of child_read.txt:"
- print from_child
+ print("\n\nContents of child_read.txt:")
+ print(from_child)
# The matching could be verbatim or using generic re pattern.
for p in patterns:
Modified: lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py (original)
+++ lldb/trunk/test/functionalities/conditional_break/TestConditionalBreak.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test conditionally break on a function and inspect its variables.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -61,7 +63,7 @@ class ConditionalBreakTestCase(TestBase)
# like to try for at most 10 times.
for j in range(10):
if self.TraceOn():
- print "j is: ", j
+ print("j is: ", j)
thread = process.GetThreadAtIndex(0)
if thread.GetNumFrames() >= 2:
@@ -94,7 +96,7 @@ class ConditionalBreakTestCase(TestBase)
# breakpoint such that lldb only stops when the caller of c() is a().
# the "my" package that defines the date() function.
if self.TraceOn():
- print "About to source .lldb"
+ print("About to source .lldb")
if not self.TraceOn():
self.HideStdout()
@@ -107,13 +109,13 @@ class ConditionalBreakTestCase(TestBase)
self.runCmd ("break list")
if self.TraceOn():
- print "About to run."
+ print("About to run.")
self.runCmd("run", RUN_SUCCEEDED)
self.runCmd ("break list")
if self.TraceOn():
- print "Done running"
+ print("Done running")
# The stop reason of the thread should be breakpoint.
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
Modified: lldb/trunk/test/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/compactvectors/TestCompactVectors.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/compactvectors/TestCompactVectors.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/compactvectors/TestCompactVectors.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/compactvectors/TestCompactVectors.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/nsstring/TestDataFormatterNSString.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/nsstring/TestDataFormatterNSString.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/nsstring/TestDataFormatterNSString.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/nsstring/TestDataFormatterNSString.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-proper-plurals/TestFormattersOneIsSingular.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-proper-plurals/TestFormattersOneIsSingular.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-proper-plurals/TestFormattersOneIsSingular.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-proper-plurals/TestFormattersOneIsSingular.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-ptr-to-array/TestPtrToArrayFormatting.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-ptr-to-array/TestPtrToArrayFormatting.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-ptr-to-array/TestPtrToArrayFormatting.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-ptr-to-array/TestPtrToArrayFormatting.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -225,7 +227,7 @@ class PythonSynthDataFormatterTestCase(T
str_cast = str(test_cast)
if self.TraceOn():
- print str_cast
+ print(str_cast)
self.assertTrue(str_cast.find('A') != -1, 'could not find A in output')
self.assertTrue(str_cast.find('B') != -1, 'could not find B in output')
@@ -238,7 +240,7 @@ class PythonSynthDataFormatterTestCase(T
str_cast = str(test_cast)
if self.TraceOn():
- print str_cast
+ print(str_cast)
# we detect that all the values of the child objects have changed - but the counter-generated item
# is still fixed at 0 because it is cached - this would fail if update(self): in ftsp returned False
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -131,13 +133,13 @@ class SkipSummaryDataFormatterTestCase(T
if self.getCompiler().endswith('gcc') and not self.getCompiler().endswith('llvm-gcc'):
import re
gcc_version_output = system([[lldbutil.which(self.getCompiler()), "-v"]])[1]
- #print "my output:", gcc_version_output
+ #print("my output:", gcc_version_output)
for line in gcc_version_output.split(os.linesep):
m = re.search('\(Apple Inc\. build ([0-9]+)\)', line)
- #print "line:", line
+ #print("line:", line)
if m:
gcc_build = int(m.group(1))
- #print "gcc build:", gcc_build
+ #print("gcc build:", gcc_build)
if gcc_build >= 5666:
# rdar://problem/9804600"
self.skipTest("rdar://problem/9804600 wrong namespace for std::string in debug info")
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time, re
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/TestDataFormatterLibcxxListLoop.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/TestDataFormatterLibcxxListLoop.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/TestDataFormatterLibcxxListLoop.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/TestDataFormatterLibcxxListLoop.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@ Test that the debugger handles loops in
corruption).
"""
+from __future__ import print_function
+
import lldb_shared
import os, time, re
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -58,7 +60,7 @@ class DataFormatterSynthValueTestCase(Te
z_val = z.GetValueAsUnsigned
if self.TraceOn():
- print "x_val = %s; y_val = %s; z_val = %s" % (x_val(),y_val(),z_val())
+ print("x_val = %s; y_val = %s; z_val = %s" % (x_val(),y_val(),z_val()))
self.assertFalse(x_val() == 3, "x == 3 before synthetics")
self.assertFalse(y_val() == 4, "y == 4 before synthetics")
@@ -70,7 +72,7 @@ class DataFormatterSynthValueTestCase(Te
self.runCmd("type synth add -l myArraySynthProvider myArray")
if self.TraceOn():
- print "x_val = %s; y_val = %s; z_val = %s" % (x_val(),y_val(),z_val())
+ print("x_val = %s; y_val = %s; z_val = %s" % (x_val(),y_val(),z_val()))
self.assertTrue(x_val() == 3, "x != 3 after synthetics")
self.assertTrue(y_val() == 4, "y != 4 after synthetics")
Modified: lldb/trunk/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Check if changing Format on an SBValue correctly propagates that new format to children as it should
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that the user can input a format but it will not prevail over summary format's choices.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/hexcaps/TestDataFormatterHexCaps.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/hexcaps/TestDataFormatterHexCaps.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/hexcaps/TestDataFormatterHexCaps.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/hexcaps/TestDataFormatterHexCaps.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/nsarraysynth/TestNSArraySynthetic.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/nsarraysynth/TestNSArraySynthetic.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/nsarraysynth/TestNSArraySynthetic.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/nsarraysynth/TestNSArraySynthetic.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/nsdictionarysynth/TestNSDictionarySynthetic.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/nsdictionarysynth/TestNSDictionarySynthetic.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/nsdictionarysynth/TestNSDictionarySynthetic.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/nsdictionarysynth/TestNSDictionarySynthetic.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/nssetsynth/TestNSSetSynthetic.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/nssetsynth/TestNSSetSynthetic.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/nssetsynth/TestNSSetSynthetic.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/nssetsynth/TestNSSetSynthetic.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/ostypeformatting/TestFormattersOsType.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/ostypeformatting/TestFormattersOsType.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/ostypeformatting/TestFormattersOsType.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/ostypeformatting/TestFormattersOsType.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that ValueObjectPrinter does not cause an infinite loop when a reference to a struct that contains a pointer to itself is printed.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/summary-string-onfail/Test-rdar-9974002.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/summary-string-onfail/Test-rdar-9974002.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/summary-string-onfail/Test-rdar-9974002.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/summary-string-onfail/Test-rdar-9974002.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/synthcapping/TestSyntheticCapping.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/synthcapping/TestSyntheticCapping.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/synthcapping/TestSyntheticCapping.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/synthcapping/TestSyntheticCapping.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Check for an issue where capping does not work because the Target pointer appears to be changing behind our backs
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/synthupdate/TestSyntheticFilterRecompute.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/synthupdate/TestSyntheticFilterRecompute.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/synthupdate/TestSyntheticFilterRecompute.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/synthupdate/TestSyntheticFilterRecompute.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that the user can input a format but it will not prevail over summary format's choices.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/var-in-aggregate-misuse/TestVarInAggregateMisuse.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/var-in-aggregate-misuse/TestVarInAggregateMisuse.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/var-in-aggregate-misuse/TestVarInAggregateMisuse.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/var-in-aggregate-misuse/TestVarInAggregateMisuse.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Check that vector types format properly
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -49,7 +51,7 @@ class VectorTypesFormattingTestCase(Test
v.SetPreferSyntheticValue(True)
v.SetFormat(lldb.eFormatVectorOfFloat32)
- if self.TraceOn(): print v
+ if self.TraceOn(): print(v)
self.assertTrue(v.GetNumChildren() == 4, "v as float32[] has 4 children")
self.assertTrue(v.GetChildAtIndex(0).GetData().float[0] == 1.25, "child 0 == 1.25")
Modified: lldb/trunk/test/functionalities/dead-strip/TestDeadStrip.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/dead-strip/TestDeadStrip.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/dead-strip/TestDeadStrip.py (original)
+++ lldb/trunk/test/functionalities/dead-strip/TestDeadStrip.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that breakpoint works correctly in the presence of dead-code stripping.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/disassembly/TestDisassembleBreakpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/disassembly/TestDisassembleBreakpoint.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/disassembly/TestDisassembleBreakpoint.py (original)
+++ lldb/trunk/test/functionalities/disassembly/TestDisassembleBreakpoint.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test some lldb command abbreviations.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/dynamic_value_child_count/TestDynamicValueChildCount.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/dynamic_value_child_count/TestDynamicValueChildCount.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/dynamic_value_child_count/TestDynamicValueChildCount.py (original)
+++ lldb/trunk/test/functionalities/dynamic_value_child_count/TestDynamicValueChildCount.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that dynamic values update their child count correctly
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/embedded_interpreter/TestConvenienceVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/embedded_interpreter/TestConvenienceVariables.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/embedded_interpreter/TestConvenienceVariables.py (original)
+++ lldb/trunk/test/functionalities/embedded_interpreter/TestConvenienceVariables.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test convenience variables when you drop in from lldb prompt into an embedded interpreter."""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -50,28 +52,28 @@ class ConvenienceVariablesCase(TestBase)
# Python interpreter, then the lldb interpreter.
self.child_in_script_interpreter = True
- child.sendline('print lldb.debugger')
+ child.sendline('print(lldb.debugger)')
child.expect_exact(python_prompt)
self.expect(child.before, exe=False,
patterns = ['Debugger \(instance: .*, id: \d\)'])
- child.sendline('print lldb.target')
+ child.sendline('print(lldb.target)')
child.expect_exact(python_prompt)
self.expect(child.before, exe=False,
substrs = ['a.out'])
- child.sendline('print lldb.process')
+ child.sendline('print(lldb.process)')
child.expect_exact(python_prompt)
self.expect(child.before, exe=False,
patterns = ['SBProcess: pid = \d+, state = stopped, threads = \d, executable = a.out'])
- child.sendline('print lldb.thread')
+ child.sendline('print(lldb.thread)')
child.expect_exact(python_prompt)
# Linux outputs decimal tid and 'name' instead of 'queue'
self.expect(child.before, exe=False,
patterns = ['thread #1: tid = (0x[0-9a-f]+|[0-9]+), 0x[0-9a-f]+ a\.out`main\(argc=1, argv=0x[0-9a-f]+\) \+ \d+ at main\.c:%d, (name|queue) = \'.+\', stop reason = breakpoint 1\.1' % self.line])
- child.sendline('print lldb.frame')
+ child.sendline('print(lldb.frame)')
child.expect_exact(python_prompt)
self.expect(child.before, exe=False,
patterns = ['frame #0: 0x[0-9a-f]+ a\.out`main\(argc=1, argv=0x[0-9a-f]+\) \+ \d+ at main\.c:%d' % self.line])
Modified: lldb/trunk/test/functionalities/exec/TestExec.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/exec/TestExec.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/exec/TestExec.py (original)
+++ lldb/trunk/test/functionalities/exec/TestExec.py Fri Oct 23 12:04:29 2015
@@ -1,6 +1,8 @@
"""
Test some lldb command abbreviations.
"""
+from __future__ import print_function
+
import lldb_shared
import commands
@@ -11,11 +13,11 @@ from lldbtest import *
import lldbutil
def execute_command (command):
- #print '%% %s' % (command)
+ #print('%% %s' % (command))
(exit_status, output) = commands.getstatusoutput (command)
#if output:
- # print output
- #print 'status = %u' % (exit_status)
+ # print(output)
+ #print('status = %u' % (exit_status))
return exit_status
class ExecTestCase(TestBase):
Modified: lldb/trunk/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py (original)
+++ lldb/trunk/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that expr will time out and allow other threads to run if it blocks.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -33,7 +35,7 @@ class ExprDoesntDeadlockTestCase(TestBas
main_file_spec = lldb.SBFileSpec ("locking.c")
breakpoint = target.BreakpointCreateBySourceRegex('Break here', main_file_spec)
if self.TraceOn():
- print "breakpoint:", breakpoint
+ print("breakpoint:", breakpoint)
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
Modified: lldb/trunk/test/functionalities/fat_archives/TestFatArchives.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/fat_archives/TestFatArchives.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/fat_archives/TestFatArchives.py (original)
+++ lldb/trunk/test/functionalities/fat_archives/TestFatArchives.py Fri Oct 23 12:04:29 2015
@@ -1,6 +1,8 @@
"""
Test some lldb command abbreviations.
"""
+from __future__ import print_function
+
import lldb_shared
import commands
@@ -11,11 +13,11 @@ from lldbtest import *
import lldbutil
def execute_command (command):
- # print '%% %s' % (command)
+ # print('%% %s' % (command))
(exit_status, output) = commands.getstatusoutput (command)
# if output:
- # print output
- # print 'status = %u' % (exit_status)
+ # print(output)
+ # print('status = %u' % (exit_status))
return exit_status
class FatArchiveTestCase(TestBase):
Modified: lldb/trunk/test/functionalities/format/TestFormats.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/format/TestFormats.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/format/TestFormats.py (original)
+++ lldb/trunk/test/functionalities/format/TestFormats.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the command history mechanism
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/inferior-assert/TestInferiorAssert.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/inferior-assert/TestInferiorAssert.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/inferior-assert/TestInferiorAssert.py (original)
+++ lldb/trunk/test/functionalities/inferior-assert/TestInferiorAssert.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that lldb functions correctly after the inferior has asserted."""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -167,7 +169,7 @@ class AssertingInferiorTestCase(TestBase
frame = thread.GetFrameAtIndex(i)
self.assertTrue(frame.IsValid(), "current frame is valid")
if self.TraceOn():
- print "Checking if function %s is main" % frame.GetFunctionName()
+ print("Checking if function %s is main" % frame.GetFunctionName())
if 'main' == frame.GetFunctionName():
frame_id = frame.GetFrameID()
Modified: lldb/trunk/test/functionalities/inferior-changed/TestInferiorChanged.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/inferior-changed/TestInferiorChanged.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/inferior-changed/TestInferiorChanged.py (original)
+++ lldb/trunk/test/functionalities/inferior-changed/TestInferiorChanged.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test lldb reloads the inferior after it was changed during the session."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py (original)
+++ lldb/trunk/test/functionalities/inferior-crashing/TestInferiorCrashing.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that lldb functions correctly after the inferior has crashed."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py (original)
+++ lldb/trunk/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that lldb functions correctly after the inferior has crashed while in a recursive routine."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/inline-stepping/TestInlineStepping.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/inline-stepping/TestInlineStepping.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/inline-stepping/TestInlineStepping.py (original)
+++ lldb/trunk/test/functionalities/inline-stepping/TestInlineStepping.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test stepping over and into inlined functions."""
+from __future__ import print_function
+
import lldb_shared
import os, time, sys
Modified: lldb/trunk/test/functionalities/jitloader_gdb/TestJITLoaderGDB.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/jitloader_gdb/TestJITLoaderGDB.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/jitloader_gdb/TestJITLoaderGDB.py (original)
+++ lldb/trunk/test/functionalities/jitloader_gdb/TestJITLoaderGDB.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test for the JITLoaderGDB interface"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/functionalities/launch_with_shellexpand/TestLaunchWithShellExpand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_shellexpand/TestLaunchWithShellExpand.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/launch_with_shellexpand/TestLaunchWithShellExpand.py (original)
+++ lldb/trunk/test/functionalities/launch_with_shellexpand/TestLaunchWithShellExpand.py Fri Oct 23 12:04:29 2015
@@ -1,6 +1,8 @@
"""
Test that argdumper is a viable launching strategy.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py (original)
+++ lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that breakpoint by symbol name works correctly with dynamic libs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -110,7 +112,7 @@ class LoadUnloadTestCase(TestBase):
# Inform (DY)LD_LIBRARY_PATH of the new path, too.
env_cmd_string = "settings set target.env-vars " + self.dylibPath + "=" + new_dir
if self.TraceOn():
- print "Set environment to: ", env_cmd_string
+ print("Set environment to: ", env_cmd_string)
self.runCmd(env_cmd_string)
self.runCmd("settings show target.env-vars")
@@ -224,7 +226,7 @@ class LoadUnloadTestCase(TestBase):
output = self.res.GetOutput()
pattern = re.compile("Image ([0-9]+) loaded")
for l in output.split(os.linesep):
- #print "l:", l
+ #print("l:", l)
match = pattern.search(l)
if match:
break
Modified: lldb/trunk/test/functionalities/longjmp/TestLongjmp.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/longjmp/TestLongjmp.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/longjmp/TestLongjmp.py (original)
+++ lldb/trunk/test/functionalities/longjmp/TestLongjmp.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the use of setjmp/longjmp for non-local goto operations in a single-threaded inferior.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py (original)
+++ lldb/trunk/test/functionalities/memory/read/TestMemoryRead.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the 'memory read' command.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py (original)
+++ lldb/trunk/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py Fri Oct 23 12:04:29 2015
@@ -1,6 +1,8 @@
"""Test evaluating expressions which ref. index variable 'i' which just goes
from out of scope to in scope when stopped at the breakpoint."""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/functionalities/nosucharch/TestNoSuchArch.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/nosucharch/TestNoSuchArch.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/nosucharch/TestNoSuchArch.py (original)
+++ lldb/trunk/test/functionalities/nosucharch/TestNoSuchArch.py Fri Oct 23 12:04:29 2015
@@ -1,6 +1,8 @@
"""
Test that using a non-existent architecture name does not crash LLDB.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/functionalities/object-file/TestImageListMultiArchitecture.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/object-file/TestImageListMultiArchitecture.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/object-file/TestImageListMultiArchitecture.py (original)
+++ lldb/trunk/test/functionalities/object-file/TestImageListMultiArchitecture.py Fri Oct 23 12:04:29 2015
@@ -4,6 +4,8 @@ This exercises classes like ObjectFileEL
foreign-architecture object files.
"""
+from __future__ import print_function
+
import lldb_shared
import os.path
Modified: lldb/trunk/test/functionalities/paths/TestPaths.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/paths/TestPaths.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/paths/TestPaths.py (original)
+++ lldb/trunk/test/functionalities/paths/TestPaths.py Fri Oct 23 12:04:29 2015
@@ -1,6 +1,8 @@
"""
Test some lldb command abbreviations.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/functionalities/platform/TestPlatformCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/platform/TestPlatformCommand.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/platform/TestPlatformCommand.py (original)
+++ lldb/trunk/test/functionalities/platform/TestPlatformCommand.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test some lldb platform commands.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/plugins/commands/TestPluginCommands.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/plugins/commands/TestPluginCommands.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/plugins/commands/TestPluginCommands.py (original)
+++ lldb/trunk/test/functionalities/plugins/commands/TestPluginCommands.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that plugins that load commands work correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -47,7 +49,7 @@ class PluginCommandTestCase(TestBase):
retval = debugger.GetCommandInterpreter().HandleCommand("plugin_loaded_command child abc def ghi",retobj)
if self.TraceOn():
- print retobj.GetOutput()
+ print(retobj.GetOutput())
self.expect(retobj,substrs = ['abc def ghi'], exe=False)
@@ -57,6 +59,6 @@ class PluginCommandTestCase(TestBase):
retval = debugger.GetCommandInterpreter().HandleCommand("plugin_loaded_ ch abc def ghi",retobj)
if self.TraceOn():
- print retobj.GetOutput()
+ print(retobj.GetOutput())
self.expect(retobj,substrs = ['abc def ghi'], exe=False)
Modified: lldb/trunk/test/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py (original)
+++ lldb/trunk/test/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that the Python operating system plugin works correctly
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/postmortem/minidump/TestMiniDump.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/postmortem/minidump/TestMiniDump.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/postmortem/minidump/TestMiniDump.py (original)
+++ lldb/trunk/test/functionalities/postmortem/minidump/TestMiniDump.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test basics of mini dump debugging.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/functionalities/process_attach/TestProcessAttach.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/process_attach/TestProcessAttach.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/process_attach/TestProcessAttach.py (original)
+++ lldb/trunk/test/functionalities/process_attach/TestProcessAttach.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test process attach.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/process_attach/attach_denied/TestAttachDenied.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/process_attach/attach_denied/TestAttachDenied.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/process_attach/attach_denied/TestAttachDenied.py (original)
+++ lldb/trunk/test/functionalities/process_attach/attach_denied/TestAttachDenied.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test denied process attach.
"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -42,7 +44,7 @@ class AttachDeniedTestCase(TestBase):
if err.Success() and retcode == 0:
break
else:
- print msg
+ print(msg)
if i < max_attempts:
# Exponential backoff!
time.sleep(pow(2, i) * 0.25)
Modified: lldb/trunk/test/functionalities/process_group/TestChangeProcessGroup.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/process_group/TestChangeProcessGroup.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/process_group/TestChangeProcessGroup.py (original)
+++ lldb/trunk/test/functionalities/process_group/TestChangeProcessGroup.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that we handle inferiors which change their process group"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -39,7 +41,7 @@ class ChangeProcessGroupTestCase(TestBas
if err.Success() and retcode == 0:
break
else:
- print msg
+ print(msg)
if i < max_attempts:
# Exponential backoff!
time.sleep(pow(2, i) * 0.25)
Modified: lldb/trunk/test/functionalities/process_launch/TestProcessLaunch.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/process_launch/TestProcessLaunch.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/process_launch/TestProcessLaunch.py (original)
+++ lldb/trunk/test/functionalities/process_launch/TestProcessLaunch.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb process launch flags.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -160,7 +162,7 @@ class ProcessLaunchTestCase(TestBase):
# Check to see if the 'stdout' file contains the right output
line = out_f.readline();
if self.TraceOn():
- print "line:", line
+ print("line:", line)
if not re.search(mywd, line):
success = False
err_msg = err_msg + "The current working directory was not set correctly.\n"
Modified: lldb/trunk/test/functionalities/recursion/TestValueObjectRecursion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/recursion/TestValueObjectRecursion.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/recursion/TestValueObjectRecursion.py (original)
+++ lldb/trunk/test/functionalities/recursion/TestValueObjectRecursion.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb data formatter subsystem.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -45,12 +47,12 @@ class ValueObjectRecursionTestCase(TestB
root = self.frame().FindVariable("root")
child = root.GetChildAtIndex(1)
if self.TraceOn():
- print root
- print child
+ print(root)
+ print(child)
for i in range(0,24500):
child = child.GetChildAtIndex(1)
if self.TraceOn():
- print child
+ print(child)
self.assertTrue(child.IsValid(),"could not retrieve the deep ValueObject")
self.assertTrue(child.GetChildAtIndex(0).IsValid(),"the deep ValueObject has no value")
self.assertTrue(child.GetChildAtIndex(0).GetValueAsUnsigned() != 0,"the deep ValueObject has a zero value")
Modified: lldb/trunk/test/functionalities/register/TestRegisters.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/register/TestRegisters.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/register/TestRegisters.py (original)
+++ lldb/trunk/test/functionalities/register/TestRegisters.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the 'register' command.
"""
+from __future__ import print_function
+
import lldb_shared
import os, sys, time
@@ -176,8 +178,8 @@ class RegisterCommandsTestCase(TestBase)
for str1 in substrs:
matched = output.find(str1) != -1
with recording(self, False) as sbuf:
- print >> sbuf, "%s sub string: %s" % ('Expecting', str1)
- print >> sbuf, "Matched" if matched else "Not Matched"
+ print("%s sub string: %s" % ('Expecting', str1), file=sbuf)
+ print("Matched" if matched else "Not Matched", file=sbuf)
if matched:
break
self.assertTrue(matched, STOPPED_DUE_TO_SIGNAL)
@@ -339,7 +341,7 @@ class RegisterCommandsTestCase(TestBase)
self.addTearDownHook(self.cleanupSubprocesses)
if self.TraceOn():
- print "pid of spawned process: %d" % pid
+ print("pid of spawned process: %d" % pid)
self.runCmd("process attach -p %d" % pid)
Modified: lldb/trunk/test/functionalities/rerun/TestRerun.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/rerun/TestRerun.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/rerun/TestRerun.py (original)
+++ lldb/trunk/test/functionalities/rerun/TestRerun.py Fri Oct 23 12:04:29 2015
@@ -1,6 +1,8 @@
"""
Test that argdumper is a viable launching strategy.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/functionalities/return-value/TestReturnValue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/return-value/TestReturnValue.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/return-value/TestReturnValue.py (original)
+++ lldb/trunk/test/functionalities/return-value/TestReturnValue.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test getting return-values correctly when stepping out
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/set-data/TestSetData.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/set-data/TestSetData.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/set-data/TestSetData.py (original)
+++ lldb/trunk/test/functionalities/set-data/TestSetData.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Set the contents of variables and registers using raw data
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/signal/TestSendSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/TestSendSignal.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/signal/TestSendSignal.py (original)
+++ lldb/trunk/test/functionalities/signal/TestSendSignal.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that lldb command 'process signal SIGUSR1' to send a signal to the inferior works."""
+from __future__ import print_function
+
import lldb_shared
import os, time, signal
Modified: lldb/trunk/test/functionalities/signal/handle-segv/TestHandleSegv.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/handle-segv/TestHandleSegv.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/signal/handle-segv/TestHandleSegv.py (original)
+++ lldb/trunk/test/functionalities/signal/handle-segv/TestHandleSegv.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that we can debug inferiors that handle SIGSEGV by themselves"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/signal/raise/TestRaise.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/raise/TestRaise.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/signal/raise/TestRaise.py (original)
+++ lldb/trunk/test/functionalities/signal/raise/TestRaise.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that we handle inferiors that send signals to themselves"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -184,7 +186,7 @@ class RaiseTestCase(TestBase):
# The last WaitForEvent call will time out after 2 seconds.
while listener.WaitForEvent(2, event):
if self.TraceOn():
- print "Process changing state to:", self.dbg.StateAsCString(process.GetStateFromEvent(event))
+ print("Process changing state to:", self.dbg.StateAsCString(process.GetStateFromEvent(event)))
# now the process should be stopped
self.assertEqual(process.GetState(), lldb.eStateStopped, PROCESS_STOPPED)
@@ -204,7 +206,7 @@ class RaiseTestCase(TestBase):
# Clear the events again
while listener.WaitForEvent(2, event):
if self.TraceOn():
- print "Process changing state to:", self.dbg.StateAsCString(process.GetStateFromEvent(event))
+ print("Process changing state to:", self.dbg.StateAsCString(process.GetStateFromEvent(event)))
# The process should be stopped due to a signal
self.assertEqual(process.GetState(), lldb.eStateStopped)
Modified: lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py (original)
+++ lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the lldb command line takes a filename with single quote chars.
"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -57,13 +59,13 @@ class SingleQuoteInCommandLineTestCase(T
with open('child_send.txt', 'r') as fs:
if self.TraceOn():
- print "\n\nContents of child_send.txt:"
- print fs.read()
+ print("\n\nContents of child_send.txt:")
+ print(fs.read())
with open('child_read.txt', 'r') as fr:
from_child = fr.read()
if self.TraceOn():
- print "\n\nContents of child_read.txt:"
- print from_child
+ print("\n\nContents of child_read.txt:")
+ print(from_child)
self.expect(from_child, exe=False,
substrs = ["Current executable set to"])
Modified: lldb/trunk/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py (original)
+++ lldb/trunk/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test thread step-in, step-over and step-out work with the "Avoid no debug" option.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/stop-hook/TestStopHookCmd.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/stop-hook/TestStopHookCmd.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/stop-hook/TestStopHookCmd.py (original)
+++ lldb/trunk/test/functionalities/stop-hook/TestStopHookCmd.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb target stop-hook command.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/stop-hook/TestStopHookMechanism.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/stop-hook/TestStopHookMechanism.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/stop-hook/TestStopHookMechanism.py (original)
+++ lldb/trunk/test/functionalities/stop-hook/TestStopHookMechanism.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb target stop-hook mechanism to see whether it fires off correctly .
"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -83,7 +85,7 @@ class StopHookMechanismTestCase(TestBase
# make up a whole nother test case for it.
child.sendline('frame info')
at_line = 'at main.cpp:%d' % (self.correct_step_line)
- print 'expecting "%s"' % at_line
+ print('expecting "%s"' % at_line)
child.expect_exact(at_line)
# Now continue the inferior, we'll stop at another breakpoint which is outside the stop-hook range.
Modified: lldb/trunk/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py (original)
+++ lldb/trunk/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that lldb stop-hook works for multiple threads.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/target_command/TestTargetCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/target_command/TestTargetCommand.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/target_command/TestTargetCommand.py (original)
+++ lldb/trunk/test/functionalities/target_command/TestTargetCommand.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test some target commands: create, list, select, variable.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
@@ -76,7 +78,7 @@ class targetCommandTestCase(TestBase):
if match:
# We will start from (index + 1) ....
base = int(match.group(1), 10) + 1
- #print "base is:", base
+ #print("base is:", base)
break;
self.runCmd("target create " + exe_a, CURRENT_EXECUTABLE_SET)
Modified: lldb/trunk/test/functionalities/thread/TestNumThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/TestNumThreads.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/TestNumThreads.py (original)
+++ lldb/trunk/test/functionalities/thread/TestNumThreads.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test number of threads.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py (original)
+++ lldb/trunk/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test number of threads.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py (original)
+++ lldb/trunk/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py Fri Oct 23 12:04:29 2015
@@ -10,6 +10,8 @@ until exit or a crash takes place, and t
verified to match the expected number of events.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py (original)
+++ lldb/trunk/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that step-inst over a crash behaves correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py (original)
+++ lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test thread creation after process attach.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/create_during_step/TestCreateDuringStep.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/create_during_step/TestCreateDuringStep.py (original)
+++ lldb/trunk/test/functionalities/thread/create_during_step/TestCreateDuringStep.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test number of threads.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py (original)
+++ lldb/trunk/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test number of threads.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/exit_during_step/TestExitDuringStep.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/exit_during_step/TestExitDuringStep.py (original)
+++ lldb/trunk/test/functionalities/thread/exit_during_step/TestExitDuringStep.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test number of threads.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/thread/jump/TestThreadJump.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/jump/TestThreadJump.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/jump/TestThreadJump.py (original)
+++ lldb/trunk/test/functionalities/thread/jump/TestThreadJump.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test jumping to different places.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py (original)
+++ lldb/trunk/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test number of threads.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/thread/state/TestThreadStates.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/state/TestThreadStates.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/state/TestThreadStates.py (original)
+++ lldb/trunk/test/functionalities/thread/state/TestThreadStates.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test thread states.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/functionalities/thread/step_out/TestThreadStepOut.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/step_out/TestThreadStepOut.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/step_out/TestThreadStepOut.py (original)
+++ lldb/trunk/test/functionalities/thread/step_out/TestThreadStepOut.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test stepping out from a function in a multi-threaded program.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/thread/thread_exit/TestThreadExit.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/thread_exit/TestThreadExit.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/thread_exit/TestThreadExit.py (original)
+++ lldb/trunk/test/functionalities/thread/thread_exit/TestThreadExit.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test number of threads.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py (original)
+++ lldb/trunk/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that we obey thread conditioned breakpoints.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/tty/TestTerminal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/tty/TestTerminal.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/tty/TestTerminal.py (original)
+++ lldb/trunk/test/functionalities/tty/TestTerminal.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb command aliases.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/functionalities/type_completion/TestTypeCompletion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/type_completion/TestTypeCompletion.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/type_completion/TestTypeCompletion.py (original)
+++ lldb/trunk/test/functionalities/type_completion/TestTypeCompletion.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Check that types only get completed when necessary.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -72,11 +74,11 @@ class TypeCompletionTestCase(TestBase):
self.assertTrue(name_address_type.IsTypeComplete(), 'NameAndAddress should now be complete')
field0 = name_address_type.GetFieldAtIndex(0)
if self.TraceOn():
- print 'field0: ' + str(field0)
+ print('field0: ' + str(field0))
self.assertTrue(field0.IsValid(), 'NameAndAddress::m_name should be valid')
string = field0.GetType().GetPointeeType()
if self.TraceOn():
- print 'string: ' + str(string)
+ print('string: ' + str(string))
self.assertTrue(string.IsValid(), 'std::string should be valid')
self.assertFalse(string.IsTypeComplete(), 'std::string complete but it should not be')
@@ -90,11 +92,11 @@ class TypeCompletionTestCase(TestBase):
self.assertTrue(name_address_type.IsTypeComplete(), 'NameAndAddress should now be complete')
field0 = name_address_type.GetFieldAtIndex(0)
if self.TraceOn():
- print 'field0: ' + str(field0)
+ print('field0: ' + str(field0))
self.assertTrue(field0.IsValid(), 'NameAndAddress::m_name should be valid')
string = field0.GetType().GetPointeeType()
if self.TraceOn():
- print 'string: ' + str(string)
+ print('string: ' + str(string))
self.assertTrue(string.IsValid(), 'std::string should be valid')
self.assertFalse(string.IsTypeComplete(), 'std::string complete but it should not be')
Modified: lldb/trunk/test/functionalities/type_lookup/TestTypeLookup.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/type_lookup/TestTypeLookup.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/type_lookup/TestTypeLookup.py (original)
+++ lldb/trunk/test/functionalities/type_lookup/TestTypeLookup.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test type lookup command.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/unwind/noreturn/TestNoreturnUnwind.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/noreturn/TestNoreturnUnwind.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/unwind/noreturn/TestNoreturnUnwind.py (original)
+++ lldb/trunk/test/functionalities/unwind/noreturn/TestNoreturnUnwind.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that we can backtrace correctly with 'noreturn' functions on the stack
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -42,9 +44,9 @@ class NoreturnUnwind(TestBase):
abort_frame_number = abort_frame_number + 1
if self.TraceOn():
- print "Backtrace once we're stopped:"
+ print("Backtrace once we're stopped:")
for f in thread.frames:
- print " %d %s" % (f.GetFrameID(), f.GetFunctionName())
+ print(" %d %s" % (f.GetFrameID(), f.GetFunctionName()))
# I'm going to assume that abort() ends up calling/invoking another
# function before halting the process. In which case if abort_frame_number
Modified: lldb/trunk/test/functionalities/unwind/sigtramp/TestSigtrampUnwind.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/sigtramp/TestSigtrampUnwind.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/unwind/sigtramp/TestSigtrampUnwind.py (original)
+++ lldb/trunk/test/functionalities/unwind/sigtramp/TestSigtrampUnwind.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that we can backtrace correctly with 'sigtramp' functions on the stack
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -62,9 +64,9 @@ class SigtrampUnwind(TestBase):
found_main = True
if self.TraceOn():
- print "Backtrace once we're stopped:"
+ print("Backtrace once we're stopped:")
for f in thread.frames:
- print " %d %s" % (f.GetFrameID(), f.GetFunctionName())
+ print(" %d %s" % (f.GetFrameID(), f.GetFunctionName()))
if found_handler == False:
self.fail("Unable to find handler() in backtrace.")
Modified: lldb/trunk/test/functionalities/unwind/standard/TestStandardUnwind.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/standard/TestStandardUnwind.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/unwind/standard/TestStandardUnwind.py (original)
+++ lldb/trunk/test/functionalities/unwind/standard/TestStandardUnwind.py Fri Oct 23 12:04:29 2015
@@ -10,6 +10,8 @@ file up and generate a test case from it
after escaping some special characters).
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
@@ -84,9 +86,9 @@ class StandardUnwindTest(TestBase):
thread = process.GetThreadAtIndex(0)
if self.TraceOn():
- print "INDEX: %u" % index
+ print("INDEX: %u" % index)
for f in thread.frames:
- print f
+ print(f)
if thread.GetFrameAtIndex(0).GetFunctionName() is not None:
found_main = False
@@ -131,7 +133,7 @@ for f in test_source_files:
self.setTearDownCleanup(d)
except:
if self.TraceOn():
- print sys.exc_info()[0]
+ print(sys.exc_info()[0])
self.skipTest("Inferior not supported")
self.standard_unwind_tests()
Modified: lldb/trunk/test/functionalities/value_md5_crash/TestValueMD5Crash.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/value_md5_crash/TestValueMD5Crash.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/value_md5_crash/TestValueMD5Crash.py (original)
+++ lldb/trunk/test/functionalities/value_md5_crash/TestValueMD5Crash.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Verify that the hash computing logic for ValueObject's values can't crash us.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb watchpoint that uses '-s size' to watch a pointed location with size.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test my first lldb watchpoint.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that lldb watchpoint works for multiple threads.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -126,7 +128,7 @@ class WatchpointForMultipleThreadsTestCa
self.fail("Watchpoint hits not supposed to exceed 1 by design!")
# Good, we verified that the watchpoint works! Now delete the watchpoint.
if self.TraceOn():
- print "watchpoint_stops=%d at the moment we delete the watchpoint" % watchpoint_stops
+ print("watchpoint_stops=%d at the moment we delete the watchpoint" % watchpoint_stops)
self.runCmd("watchpoint delete 1")
self.expect("watchpoint list -v",
substrs = ['No watchpoints currently set.'])
Modified: lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/TestStepOverWatchpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/TestStepOverWatchpoint.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/TestStepOverWatchpoint.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/TestStepOverWatchpoint.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test stepping over watchpoints."""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that a variable watchpoint should only hit when in scope.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test watchpoint list, enable, disable, and delete commands.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test 'watchpoint command'.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test 'watchpoint command'.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test watchpoint modify command to set condition on a watchpoint.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that adding, deleting and modifying watchpoints sends the appropriate events."""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -82,6 +84,6 @@ class TestWatchpointEvents (TestBase):
# There shouldn't be another event waiting around:
found_event = self.listener.PeekAtNextEventForBroadcasterWithType (self.target_bcast, lldb.SBTarget.eBroadcastBitBreakpointChanged, event)
if found_event:
- print "Found an event I didn't expect: ", event
+ print("Found an event I didn't expect: ", event)
self.assertTrue (not found_event, "Only one event per change.")
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test displayed value of a vector variable while doing watchpoint operations
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb watchpoint that uses 'watchpoint set -w write -s size' to watch a pointed location with size.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test error cases for the 'watchpoint set' command to make sure it errors out when necessary.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/help/TestHelp.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/help/TestHelp.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/help/TestHelp.py (original)
+++ lldb/trunk/test/help/TestHelp.py Fri Oct 23 12:04:29 2015
@@ -4,6 +4,8 @@ Test some lldb help commands.
See also CommandInterpreter::OutputFormattedHelpText().
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/anonymous/TestAnonymous.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/anonymous/TestAnonymous.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/anonymous/TestAnonymous.py (original)
+++ lldb/trunk/test/lang/c/anonymous/TestAnonymous.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that anonymous structs/unions are transparent to member access"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/array_types/TestArrayTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/array_types/TestArrayTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/array_types/TestArrayTypes.py (original)
+++ lldb/trunk/test/lang/c/array_types/TestArrayTypes.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test breakpoint by file/line number; and list variables with array types."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/bitfields/TestBitfields.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/bitfields/TestBitfields.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/bitfields/TestBitfields.py (original)
+++ lldb/trunk/test/lang/c/bitfields/TestBitfields.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Show bitfields and check that they display correctly."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/blocks/TestBlocks.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/blocks/TestBlocks.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/blocks/TestBlocks.py (original)
+++ lldb/trunk/test/lang/c/blocks/TestBlocks.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that lldb can invoke blocks and access variables inside them"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/c/const_variables/TestConstVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/const_variables/TestConstVariables.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/const_variables/TestConstVariables.py (original)
+++ lldb/trunk/test/lang/c/const_variables/TestConstVariables.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Check that compiler-generated constant values work correctly"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/enum_types/TestEnumTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/enum_types/TestEnumTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/enum_types/TestEnumTypes.py (original)
+++ lldb/trunk/test/lang/c/enum_types/TestEnumTypes.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Look up enum type information and check for correct display."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/forward/TestForwardDeclaration.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/forward/TestForwardDeclaration.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/forward/TestForwardDeclaration.py (original)
+++ lldb/trunk/test/lang/c/forward/TestForwardDeclaration.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that forward declaration of a data structure gets resolved correctly."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/function_types/TestFunctionTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/function_types/TestFunctionTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/function_types/TestFunctionTypes.py (original)
+++ lldb/trunk/test/lang/c/function_types/TestFunctionTypes.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test variable with function ptr type and that break on the function works."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py (original)
+++ lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Show global variables and check that they do indeed have global scopes."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/modules/TestCModules.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/modules/TestCModules.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/modules/TestCModules.py (original)
+++ lldb/trunk/test/lang/c/modules/TestCModules.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that importing modules in C works as expected."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py (original)
+++ lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Check that compiler-generated register values work correctly"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/set_values/TestSetValues.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/set_values/TestSetValues.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/set_values/TestSetValues.py (original)
+++ lldb/trunk/test/lang/c/set_values/TestSetValues.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test settings and readings of program variables."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py (original)
+++ lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that types defined in shared libraries work correctly."""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py (original)
+++ lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that types defined in shared libraries with stripped symbols work correctly."""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/c/stepping/TestStepAndBreakpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/stepping/TestStepAndBreakpoints.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/stepping/TestStepAndBreakpoints.py (original)
+++ lldb/trunk/test/lang/c/stepping/TestStepAndBreakpoints.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test stepping over vrs. hitting breakpoints & subsequent stepping in various forms."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/stepping/TestThreadStepping.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/stepping/TestThreadStepping.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/stepping/TestThreadStepping.py (original)
+++ lldb/trunk/test/lang/c/stepping/TestThreadStepping.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test thread stepping features in combination with frame select.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/c/tls_globals/TestTlsGlobals.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/tls_globals/TestTlsGlobals.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/tls_globals/TestTlsGlobals.py (original)
+++ lldb/trunk/test/lang/c/tls_globals/TestTlsGlobals.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that thread-local storage can be read correctly."""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/c/typedef/Testtypedef.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/typedef/Testtypedef.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/typedef/Testtypedef.py (original)
+++ lldb/trunk/test/lang/c/typedef/Testtypedef.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Look up type information for typedefs of same name at different lexical scope and check for correct display."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/breakpoint-commands/TestCPPBreakpointCommands.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/breakpoint-commands/TestCPPBreakpointCommands.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/breakpoint-commands/TestCPPBreakpointCommands.py (original)
+++ lldb/trunk/test/lang/cpp/breakpoint-commands/TestCPPBreakpointCommands.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb breakpoint command for CPP methods & functions in a namespace.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/char1632_t/TestChar1632T.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/char1632_t/TestChar1632T.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/char1632_t/TestChar1632T.py (original)
+++ lldb/trunk/test/lang/cpp/char1632_t/TestChar1632T.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@
Test that the C++11 support for char16_t and char32_t works correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/class_static/TestStaticVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_static/TestStaticVariables.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/class_static/TestStaticVariables.py (original)
+++ lldb/trunk/test/lang/cpp/class_static/TestStaticVariables.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test display and Python APIs on file and class static variables.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/class_types/TestClassTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_types/TestClassTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/class_types/TestClassTypes.py (original)
+++ lldb/trunk/test/lang/cpp/class_types/TestClassTypes.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test breakpoint on a class constructor; and variable list the this object."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/class_types/TestClassTypesDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_types/TestClassTypesDisassembly.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/class_types/TestClassTypesDisassembly.py (original)
+++ lldb/trunk/test/lang/cpp/class_types/TestClassTypesDisassembly.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the lldb disassemble command on each call frame when stopped on C's ctor.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -30,8 +32,8 @@ class IterateFrameAndDisassembleTestCase
match = frameRE.search(line)
if match:
function = match.group(1)
- #print "line:", line
- #print "function:", function
+ #print("line:", line)
+ #print("function:", function)
self.runCmd("disassemble -n '%s'" % function)
@python_api_test
@@ -51,8 +53,8 @@ class IterateFrameAndDisassembleTestCase
function = frame.GetFunction()
# Print the function header.
if self.TraceOn():
- print
- print function
+ print()
+ print(function)
if function:
# Get all instructions for this function and print them out.
insts = function.GetInstructions(target)
@@ -61,7 +63,7 @@ class IterateFrameAndDisassembleTestCase
# But we want to print to stdout only if self.TraceOn() is True.
disasm = str(inst)
if self.TraceOn():
- print disasm
+ print(disasm)
def setUp(self):
# Call super's setUp().
Modified: lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py (original)
+++ lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb Python API SBValue::Cast(SBType) for C++ types.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
@@ -81,8 +83,8 @@ class CppValueCastTestCase(TestBase):
if self.TraceOn():
for child in tellerA:
- print "child name:", child.GetName()
- print child
+ print("child name:", child.GetName())
+ print(child)
# Call SBValue.Cast() to obtain instanceA.
instanceA = tellerA.Cast(typeA.GetPointerType())
@@ -91,8 +93,8 @@ class CppValueCastTestCase(TestBase):
# Iterate through all the children and print their values.
if self.TraceOn():
for child in instanceA:
- print "child name:", child.GetName()
- print child
+ print("child name:", child.GetName())
+ print(child)
a_member_val = instanceA.GetChildMemberWithName('m_a_val')
self.DebugSBValue(a_member_val)
self.assertTrue(a_member_val.GetValueAsUnsigned(error, 0) == 10)
@@ -109,8 +111,8 @@ class CppValueCastTestCase(TestBase):
if self.TraceOn():
for child in tellerB:
- print "child name:", child.GetName()
- print child
+ print("child name:", child.GetName())
+ print(child)
# Call SBValue.Cast() to obtain instanceB.
instanceB = tellerB.Cast(typeB.GetPointerType())
@@ -119,8 +121,8 @@ class CppValueCastTestCase(TestBase):
# Iterate through all the children and print their values.
if self.TraceOn():
for child in instanceB:
- print "child name:", child.GetName()
- print child
+ print("child name:", child.GetName())
+ print(child)
b_member_val = instanceB.GetChildMemberWithName('m_b_val')
self.DebugSBValue(b_member_val)
self.assertTrue(b_member_val.GetValueAsUnsigned(error, 0) == 36)
Modified: lldb/trunk/test/lang/cpp/dynamic-value/TestDynamicValue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/dynamic-value/TestDynamicValue.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/dynamic-value/TestDynamicValue.py (original)
+++ lldb/trunk/test/lang/cpp/dynamic-value/TestDynamicValue.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python API to test dynamic values in C++
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/enum_types/TestCPP11EnumTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/enum_types/TestCPP11EnumTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/enum_types/TestCPP11EnumTypes.py (original)
+++ lldb/trunk/test/lang/cpp/enum_types/TestCPP11EnumTypes.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Look up enum type information and check for correct display."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py (original)
+++ lldb/trunk/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb exception breakpoint command for CPP.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/namespace/TestNamespace.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/namespace/TestNamespace.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/namespace/TestNamespace.py (original)
+++ lldb/trunk/test/lang/cpp/namespace/TestNamespace.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the printing of anonymous and named namespace variables.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/rdar12991846/TestRdar12991846.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/rdar12991846/TestRdar12991846.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/rdar12991846/TestRdar12991846.py (original)
+++ lldb/trunk/test/lang/cpp/rdar12991846/TestRdar12991846.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@
Test that the expression parser returns proper Unicode strings.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/cpp/signed_types/TestSignedTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/signed_types/TestSignedTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/signed_types/TestSignedTypes.py (original)
+++ lldb/trunk/test/lang/cpp/signed_types/TestSignedTypes.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that variables with signed types display correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/static_members/TestCPPStaticMembers.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/static_members/TestCPPStaticMembers.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/static_members/TestCPPStaticMembers.py (original)
+++ lldb/trunk/test/lang/cpp/static_members/TestCPPStaticMembers.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Tests that C++ member and static variables have correct layout and scope.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/cpp/stl/TestSTL.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/stl/TestSTL.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/stl/TestSTL.py (original)
+++ lldb/trunk/test/lang/cpp/stl/TestSTL.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test some expressions involving STL data types.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/cpp/stl/TestStdCXXDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/stl/TestStdCXXDisassembly.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/stl/TestStdCXXDisassembly.py (original)
+++ lldb/trunk/test/lang/cpp/stl/TestStdCXXDisassembly.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the lldb disassemble command on lib stdc++.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
@@ -96,9 +98,9 @@ class StdCXXDisassembleTestCase(TestBase
if match:
LA = match.group(1)
if self.TraceOn():
- print "line:", line
- print "load address:", LA
- print "SA:", SA
+ print("line:", line)
+ print("load address:", LA)
+ print("SA:", SA)
if SA and LA:
if int(LA, 16) > int(SA, 16):
self.runCmd("disassemble -s %s -e %s" % (SA, LA))
Modified: lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py (original)
+++ lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that template instaniations of std::vector<long> and <short> in the same module have the correct types.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/lang/cpp/unsigned_types/TestUnsignedTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/unsigned_types/TestUnsignedTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/unsigned_types/TestUnsignedTypes.py (original)
+++ lldb/trunk/test/lang/cpp/unsigned_types/TestUnsignedTypes.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that variables with unsigned types display correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/cpp/virtual/TestVirtual.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/virtual/TestVirtual.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/virtual/TestVirtual.py (original)
+++ lldb/trunk/test/lang/cpp/virtual/TestVirtual.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test C++ virtual function and virtual inheritance.
"""
+from __future__ import print_function
+
import os, time
import re
import lldb
@@ -71,7 +73,7 @@ class CppVirtualMadness(TestBase):
if match:
my_expr, val = match.group(1), match.group(2)
gl.append((my_expr, val))
- #print "golden list:", gl
+ #print("golden list:", gl)
# Now iterate through the golden list, comparing against the output from
# 'expression var'.
Modified: lldb/trunk/test/lang/cpp/wchar_t/TestCxxWCharT.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/wchar_t/TestCxxWCharT.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/wchar_t/TestCxxWCharT.py (original)
+++ lldb/trunk/test/lang/cpp/wchar_t/TestCxxWCharT.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@
Test that C++ supports wchar_t correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/go/goroutines/TestGoroutines.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/go/goroutines/TestGoroutines.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/go/goroutines/TestGoroutines.py (original)
+++ lldb/trunk/test/lang/go/goroutines/TestGoroutines.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test the Go OS Plugin."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/go/types/TestGoASTContext.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/go/types/TestGoASTContext.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/go/types/TestGoASTContext.py (original)
+++ lldb/trunk/test/lang/go/types/TestGoASTContext.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test the go DWARF type parsing."""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -103,8 +105,8 @@ class TestGoASTContext(TestBase):
self.assertEqual(1, v.GetNumChildren())
self.assertEqual('-10', v.GetChildAtIndex(0).value)
- # print
- # print os.getpid()
+ # print()
+ # print(os.getpid())
# time.sleep(60)
v = self.var('theStruct')
if v.TypeIsPointerType():
Modified: lldb/trunk/test/lang/mixed/TestMixedLanguages.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/mixed/TestMixedLanguages.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/mixed/TestMixedLanguages.py (original)
+++ lldb/trunk/test/lang/mixed/TestMixedLanguages.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that lldb works correctly on compile units form different languages."""
+from __future__ import print_function
+
import lldb_shared
import os, time, re
Modified: lldb/trunk/test/lang/objc/blocks/TestObjCIvarsInBlocks.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/blocks/TestObjCIvarsInBlocks.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/blocks/TestObjCIvarsInBlocks.py (original)
+++ lldb/trunk/test/lang/objc/blocks/TestObjCIvarsInBlocks.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test printing ivars and ObjC objects captured in blocks that are made in methods of an ObjC class."""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -97,5 +99,5 @@ class TestObjCIvarsInBlocks(TestBase):
self.assertTrue (expr, "Successfully got a local variable in a block in a class method.")
ret_value_signed = expr.GetValueAsSigned (error)
- # print 'ret_value_signed = %i' % (ret_value_signed)
+ # print('ret_value_signed = %i' % (ret_value_signed))
self.assertTrue (ret_value_signed == 5, "The local variable in the block was what we expected.")
Modified: lldb/trunk/test/lang/objc/forward-decl/TestForwardDecl.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/forward-decl/TestForwardDecl.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/forward-decl/TestForwardDecl.py (original)
+++ lldb/trunk/test/lang/objc/forward-decl/TestForwardDecl.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that a forward-declared class works when its complete definition is in a library"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/foundation/TestConstStrings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestConstStrings.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestConstStrings.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestConstStrings.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@ Test that objective-c constant strings a
parser.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the lldb disassemble command on foundation framework.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
@@ -35,7 +37,7 @@ class FoundationDisassembleTestCase(Test
foundation_framework = None
for module in target.modules:
- print module
+ print(module)
if module.file.basename == "Foundation":
foundation_framework = module.file.fullpath
break
@@ -58,8 +60,8 @@ class FoundationDisassembleTestCase(Test
match = codeRE.search(line)
if match:
func = match.group(1)
- #print "line:", line
- #print "func:", func
+ #print("line:", line)
+ #print("func:", func)
self.runCmd('disassemble -n "%s"' % func)
@@ -71,9 +73,9 @@ class FoundationDisassembleTestCase(Test
target = self.dbg.CreateTarget("a.out")
self.assertTrue(target, VALID_TARGET)
- print target
+ print(target)
for module in target.modules:
- print module
+ print(module)
# Stop at +[NSString stringWithFormat:].
symbol_name = "+[NSString stringWithFormat:]"
Modified: lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@ Set breakpoints on objective-c class and
Also lookup objective-c data types and evaluate expressions.
"""
+from __future__ import print_function
+
import lldb_shared
import os, os.path, time
@@ -253,8 +255,8 @@ class FoundationTestCase(TestBase):
for line in lines:
if string.find(line, "$__lldb") != -1:
if num_errors == 0:
- print "error: found spurious name lookups when evaluating an expression:"
+ print("error: found spurious name lookups when evaluating an expression:")
num_errors += 1
- print line,
+ print(line, end='')
self.assertTrue(num_errors == 0, "Spurious lookups detected")
f.close()
Modified: lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test more expression command sequences with objective-c.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/foundation/TestObjectDescriptionAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestObjectDescriptionAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestObjectDescriptionAPI.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestObjectDescriptionAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBValue.GetObjectDescription() with the value from SBTarget.FindGlobalVariables().
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -52,8 +54,8 @@ class ObjectDescriptionAPITestCase(TestB
for v in value_list1:
self.DebugSBValue(v)
if self.TraceOn():
- print "val:", v
- print "object description:", v.GetObjectDescription()
+ print("val:", v)
+ print("object description:", v.GetObjectDescription())
if v.GetName() == 'my_global_str':
self.assertTrue(v.GetObjectDescription() == 'This is a global string')
@@ -62,7 +64,7 @@ class ObjectDescriptionAPITestCase(TestB
for v in value_list2:
self.DebugSBValue(v)
if self.TraceOn():
- print "val:", v
- print "object description:", v.GetObjectDescription()
+ print("val:", v)
+ print("object description:", v.GetObjectDescription())
if v.GetName() == 'my_global_str':
self.assertTrue(v.GetObjectDescription() == 'This is a global string')
Modified: lldb/trunk/test/lang/objc/foundation/TestRuntimeTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestRuntimeTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestRuntimeTypes.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestRuntimeTypes.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that Objective-C methods from the runtime work correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/foundation/TestSymbolTable.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestSymbolTable.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestSymbolTable.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestSymbolTable.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test symbol table access for main.m.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -53,14 +55,14 @@ class FoundationSymtabTestCase(TestBase)
expected_symbols = set(self.symbols_list)
for symbol in module:
self.assertTrue(symbol, VALID_SYMBOL)
- #print "symbol:", symbol
+ #print("symbol:", symbol)
name = symbol.GetName()
if name in expected_symbols:
- #print "Removing %s from known_symbols %s" % (name, expected_symbols)
+ #print("Removing %s from known_symbols %s" % (name, expected_symbols))
expected_symbols.remove(name)
# At this point, the known_symbols set should have become an empty set.
# If not, raise an error.
- #print "symbols unaccounted for:", expected_symbols
+ #print("symbols unaccounted for:", expected_symbols)
self.assertTrue(len(expected_symbols) == 0,
"All the known symbols are accounted for")
Modified: lldb/trunk/test/lang/objc/hidden-ivars/TestHiddenIvars.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/hidden-ivars/TestHiddenIvars.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/hidden-ivars/TestHiddenIvars.py (original)
+++ lldb/trunk/test/lang/objc/hidden-ivars/TestHiddenIvars.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that hidden ivars in a shared library are visible from the main executable."""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py (original)
+++ lldb/trunk/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that dynamically discovered ivars of type IMP do not crash LLDB
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -11,11 +13,11 @@ from lldbtest import *
import commands
def execute_command (command):
- # print '%% %s' % (command)
+ # print('%% %s' % (command))
(exit_status, output) = commands.getstatusoutput (command)
# if output:
- # print output
- # print 'status = %u' % (exit_status)
+ # print(output)
+ # print('status = %u' % (exit_status))
return exit_status
class ObjCiVarIMPTestCase(TestBase):
Modified: lldb/trunk/test/lang/objc/modules-auto-import/TestModulesAutoImport.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-auto-import/TestModulesAutoImport.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/modules-auto-import/TestModulesAutoImport.py (original)
+++ lldb/trunk/test/lang/objc/modules-auto-import/TestModulesAutoImport.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that importing modules in Objective-C works as expected."""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/objc/modules-incomplete/TestIncompleteModules.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-incomplete/TestIncompleteModules.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/modules-incomplete/TestIncompleteModules.py (original)
+++ lldb/trunk/test/lang/objc/modules-incomplete/TestIncompleteModules.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that DWARF types are trusted over module types"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py (original)
+++ lldb/trunk/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that inline functions from modules are imported correctly"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/objc/modules/TestObjCModules.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules/TestObjCModules.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/modules/TestObjCModules.py (original)
+++ lldb/trunk/test/lang/objc/modules/TestObjCModules.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that importing modules in Objective-C works as expected."""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/objc/objc++/TestObjCXX.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc%2B%2B/TestObjCXX.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc++/TestObjCXX.py (original)
+++ lldb/trunk/test/lang/objc/objc++/TestObjCXX.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Make sure that ivars of Objective-C++ classes are visible in LLDB.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py (original)
+++ lldb/trunk/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python API to test base class resolution for ObjC classes
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py (original)
+++ lldb/trunk/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that the expression parser doesn't get confused by 'id' and 'Class'"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-checker/TestObjCCheckers.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-checker/TestObjCCheckers.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-checker/TestObjCCheckers.py (original)
+++ lldb/trunk/test/lang/objc/objc-checker/TestObjCCheckers.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python API to make sure the dynamic checkers are doing their jobs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-class-method/TestObjCClassMethod.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-class-method/TestObjCClassMethod.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-class-method/TestObjCClassMethod.py (original)
+++ lldb/trunk/test/lang/objc/objc-class-method/TestObjCClassMethod.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test calling functions in class methods."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py (original)
+++ lldb/trunk/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that we are able to properly report a usable dynamic type
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py (original)
+++ lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python API to test dynamic values in ObjC
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test printing ObjC objects that use unbacked properties - so that the static ivar offsets are incorrect."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test printing ObjC objects that use unbacked properties - so that the static ivar offsets are incorrect."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py (original)
+++ lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that the Objective-C syntax for dictionary/array literals and indexing works"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/lang/objc/objc-optimized/TestObjcOptimized.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-optimized/TestObjcOptimized.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-optimized/TestObjcOptimized.py (original)
+++ lldb/trunk/test/lang/objc/objc-optimized/TestObjcOptimized.py Fri Oct 23 12:04:29 2015
@@ -7,6 +7,8 @@ or 'self' variable was not properly read
optimized it into a register.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-property/TestObjCProperty.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-property/TestObjCProperty.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-property/TestObjCProperty.py (original)
+++ lldb/trunk/test/lang/objc/objc-property/TestObjCProperty.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python API to verify that expression evaluation for property references uses the correct getters and setters
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py (original)
+++ lldb/trunk/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test calling functions in static methods with a stripped binary."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-static-method/TestObjCStaticMethod.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-static-method/TestObjCStaticMethod.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-static-method/TestObjCStaticMethod.py (original)
+++ lldb/trunk/test/lang/objc/objc-static-method/TestObjCStaticMethod.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test calling functions in static methods."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py (original)
+++ lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test stepping through ObjC method dispatch in various forms."""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -85,7 +87,7 @@ class TestObjCStepping(TestBase):
className = mySource_isa.GetSummary ()
if self.TraceOn():
- print mySource_isa
+ print(mySource_isa)
# Lets delete mySource so we can check that after stepping a child variable
# with no parent persists and is useful.
@@ -127,7 +129,7 @@ class TestObjCStepping(TestBase):
newClassName = mySource_isa.GetSummary ()
if self.TraceOn():
- print mySource_isa
+ print(mySource_isa)
self.assertTrue (newClassName != className, "The isa did indeed change, swizzled!")
Modified: lldb/trunk/test/lang/objc/objc-struct-argument/TestObjCStructArgument.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-struct-argument/TestObjCStructArgument.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-struct-argument/TestObjCStructArgument.py (original)
+++ lldb/trunk/test/lang/objc/objc-struct-argument/TestObjCStructArgument.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test passing structs to Objective-C methods."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-struct-return/TestObjCStructReturn.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-struct-return/TestObjCStructReturn.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-struct-return/TestObjCStructReturn.py (original)
+++ lldb/trunk/test/lang/objc/objc-struct-return/TestObjCStructReturn.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test calling functions in class methods."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/objc-super/TestObjCSuper.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-super/TestObjCSuper.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-super/TestObjCSuper.py (original)
+++ lldb/trunk/test/lang/objc/objc-super/TestObjCSuper.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test calling methods on super."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py (original)
+++ lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test "print object" where another thread blocks the print object from making progress.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -65,7 +67,7 @@ class PrintObjTestCase(TestBase):
self.assertTrue(other_thread)
process.SetSelectedThread(other_thread)
if self.TraceOn():
- print "selected thread:" + lldbutil.get_description(other_thread)
+ print("selected thread:" + lldbutil.get_description(other_thread))
self.runCmd("thread backtrace")
# We want to traverse the frame to the one corresponding to blocked.m to
@@ -78,7 +80,7 @@ class PrintObjTestCase(TestBase):
if name == 'main':
other_thread.SetSelectedFrame(i)
if self.TraceOn():
- print "selected frame:" + lldbutil.get_description(frame)
+ print("selected frame:" + lldbutil.get_description(frame))
break
self.expect("po lock_me", OBJECT_PRINTED_CORRECTLY,
Modified: lldb/trunk/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py (original)
+++ lldb/trunk/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that objective-c method returning BOOL works correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/rdar-10967107/TestRdar10967107.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/rdar-10967107/TestRdar10967107.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/rdar-10967107/TestRdar10967107.py (original)
+++ lldb/trunk/test/lang/objc/rdar-10967107/TestRdar10967107.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that CoreFoundation classes CFGregorianDate and CFRange are not improperly uniqued
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/rdar-11355592/TestRdar11355592.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/rdar-11355592/TestRdar11355592.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/rdar-11355592/TestRdar11355592.py (original)
+++ lldb/trunk/test/lang/objc/rdar-11355592/TestRdar11355592.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that we do not attempt to make a dynamic type for a 'const char*'
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/rdar-12408181/TestRdar12408181.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/rdar-12408181/TestRdar12408181.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/rdar-12408181/TestRdar12408181.py (original)
+++ lldb/trunk/test/lang/objc/rdar-12408181/TestRdar12408181.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that we are able to find out how many children NSWindow has
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/lang/objc/real-definition/TestRealDefinition.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/real-definition/TestRealDefinition.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/real-definition/TestRealDefinition.py (original)
+++ lldb/trunk/test/lang/objc/real-definition/TestRealDefinition.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that types defined in shared libraries work correctly."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/linux/builtin_trap/TestBuiltinTrap.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/linux/builtin_trap/TestBuiltinTrap.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/linux/builtin_trap/TestBuiltinTrap.py (original)
+++ lldb/trunk/test/linux/builtin_trap/TestBuiltinTrap.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@ Test lldb ability to unwind a stack with
'__builtin_trap' intrinsic, which GCC (4.6) encodes to an illegal opcode.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py (original)
+++ lldb/trunk/test/linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@ This tests that we do not lose control o
over a thread creation instruction.
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/lldbcurses.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbcurses.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lldbcurses.py (original)
+++ lldb/trunk/test/lldbcurses.py Fri Oct 23 12:04:29 2015
@@ -115,22 +115,22 @@ class Window(object):
child.resize(new_frame.size)
if adjust_neighbors:
- #print 'orig_frame = %s\r\n' % (str(orig_frame)),
+ #print('orig_frame = %s\r\n' % (str(orig_frame)), end='')
for curr_child in self.children:
if curr_child is child:
continue
curr_child_frame = curr_child.get_frame()
if delta_size.w != 0:
- #print 'curr_child_frame = %s\r\n' % (str(curr_child_frame)),
+ #print('curr_child_frame = %s\r\n' % (str(curr_child_frame)), end='')
if curr_child_frame.get_min_x() == orig_frame.get_max_x():
curr_child_frame.origin.x += delta_size.w
curr_child_frame.size.w -= delta_size.w
- #print 'adjusted curr_child_frame = %s\r\n' % (str(curr_child_frame)),
+ #print('adjusted curr_child_frame = %s\r\n' % (str(curr_child_frame)), end='')
curr_child.resize (curr_child_frame.size)
curr_child.slide_position (Size(w=delta_size.w, h=0))
elif curr_child_frame.get_max_x() == orig_frame.get_min_x():
curr_child_frame.size.w -= delta_size.w
- #print 'adjusted curr_child_frame = %s\r\n' % (str(curr_child_frame)),
+ #print('adjusted curr_child_frame = %s\r\n' % (str(curr_child_frame)), end='')
curr_child.resize (curr_child_frame.size)
def add_key_action(self, arg, callback, decription):
Modified: lldb/trunk/test/lldbpexpect.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbpexpect.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lldbpexpect.py (original)
+++ lldb/trunk/test/lldbpexpect.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Fri Oct 23 12:04:29 2015
@@ -1584,7 +1584,7 @@ class Base(unittest2.TestCase):
During test execution, there might be cases where we don't want to show the
standard output to the user. For example,
- self.runCmd(r'''sc print "\n\n\tHello!\n"''')
+ self.runCmd(r'''sc print("\n\n\tHello!\n")''')
tests whether command abbreviation for 'script' works or not. There is no
need to show the 'Hello' output to the user as long as the 'script' command
Modified: lldb/trunk/test/lldbutil.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbutil.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/lldbutil.py (original)
+++ lldb/trunk/test/lldbutil.py Fri Oct 23 12:04:29 2015
@@ -796,7 +796,7 @@ def print_registers(frame, string_buffer
registerSet = frame.GetRegisters() # Return type of SBValueList.
print("Frame registers (size of register set = %d):" % registerSet.GetSize(), file=output)
for value in registerSet:
- #print >> output, value
+ #print(value, file=output)
print("%s (number of children = %d):" % (value.GetName(), value.GetNumChildren()), file=output)
for child in value:
print("Name: %s, Value: %s" % (child.GetName(), child.GetValue()), file=output)
@@ -824,7 +824,7 @@ def get_GPRs(frame):
from lldbutil import get_GPRs
regs = get_GPRs(frame)
for reg in regs:
- print "%s => %s" % (reg.GetName(), reg.GetValue())
+ print("%s => %s" % (reg.GetName(), reg.GetValue()))
...
"""
return get_registers(frame, "general purpose")
@@ -837,7 +837,7 @@ def get_FPRs(frame):
from lldbutil import get_FPRs
regs = get_FPRs(frame)
for reg in regs:
- print "%s => %s" % (reg.GetName(), reg.GetValue())
+ print("%s => %s" % (reg.GetName(), reg.GetValue()))
...
"""
return get_registers(frame, "floating point")
@@ -850,7 +850,7 @@ def get_ESRs(frame):
from lldbutil import get_ESRs
regs = get_ESRs(frame)
for reg in regs:
- print "%s => %s" % (reg.GetName(), reg.GetValue())
+ print("%s => %s" % (reg.GetName(), reg.GetValue()))
...
"""
return get_registers(frame, "exception state")
Modified: lldb/trunk/test/logging/TestLogging.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/logging/TestLogging.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/logging/TestLogging.py (original)
+++ lldb/trunk/test/logging/TestLogging.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb logging. This test just makes sure logging doesn't crash, and produces some output.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time, string
Modified: lldb/trunk/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py (original)
+++ lldb/trunk/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that the 'add-dsym', aka 'target symbols add', succeeds in the middle of debug session."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/macosx/debug-info/apple_types/TestAppleTypesIsProduced.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/debug-info/apple_types/TestAppleTypesIsProduced.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/macosx/debug-info/apple_types/TestAppleTypesIsProduced.py (original)
+++ lldb/trunk/test/macosx/debug-info/apple_types/TestAppleTypesIsProduced.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that clang produces the __apple accelerator tables, for example, __apple_types, correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -35,29 +37,29 @@ class AppleTypesTestCase(TestBase):
if not self.TraceOn():
self.HideStdout()
- print "Number of modules for the target: %d" % target.GetNumModules()
+ print("Number of modules for the target: %d" % target.GetNumModules())
for module in target.module_iter():
- print module
+ print(module)
# Get the executable module at index 0.
exe_module = target.GetModuleAtIndex(0)
dwarf_section = exe_module.FindSection("__DWARF")
self.assertTrue(dwarf_section)
- print "__DWARF section:", dwarf_section
- print "Number of sub-sections: %d" % dwarf_section.GetNumSubSections()
+ print("__DWARF section:", dwarf_section)
+ print("Number of sub-sections: %d" % dwarf_section.GetNumSubSections())
INDENT = ' ' * 4
for subsec in dwarf_section:
- print INDENT + str(subsec)
+ print(INDENT + str(subsec))
debug_str_sub_section = dwarf_section.FindSubSection("__debug_str")
self.assertTrue(debug_str_sub_section)
- print "__debug_str sub-section:", debug_str_sub_section
+ print("__debug_str sub-section:", debug_str_sub_section)
# Find our __apple_types section by name.
apple_types_sub_section = dwarf_section.FindSubSection("__apple_types")
self.assertTrue(apple_types_sub_section)
- print "__apple_types sub-section:", apple_types_sub_section
+ print("__apple_types sub-section:", apple_types_sub_section)
# These other three all important subsections should also be present.
self.assertTrue(dwarf_section.FindSubSection("__apple_names") and
Modified: lldb/trunk/test/macosx/indirect_symbol/TestIndirectSymbols.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/indirect_symbol/TestIndirectSymbols.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/macosx/indirect_symbol/TestIndirectSymbols.py (original)
+++ lldb/trunk/test/macosx/indirect_symbol/TestIndirectSymbols.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test stepping and setting breakpoints in indirect and re-exported symbols."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/macosx/order/TestOrderFile.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/order/TestOrderFile.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/macosx/order/TestOrderFile.py (original)
+++ lldb/trunk/test/macosx/order/TestOrderFile.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that debug symbols have the correct order as specified by the order file.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/macosx/queues/TestQueues.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/queues/TestQueues.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/macosx/queues/TestQueues.py (original)
+++ lldb/trunk/test/macosx/queues/TestQueues.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test queues inspection SB APIs."""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/macosx/safe-to-func-call/TestSafeFuncCalls.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/safe-to-func-call/TestSafeFuncCalls.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/macosx/safe-to-func-call/TestSafeFuncCalls.py (original)
+++ lldb/trunk/test/macosx/safe-to-func-call/TestSafeFuncCalls.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test function call thread safety."""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/macosx/universal/TestUniversal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/universal/TestUniversal.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/macosx/universal/TestUniversal.py (original)
+++ lldb/trunk/test/macosx/universal/TestUniversal.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test aspects of lldb commands on universal binaries."""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/plugins/builder_darwin.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/plugins/builder_darwin.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/plugins/builder_darwin.py (original)
+++ lldb/trunk/test/plugins/builder_darwin.py Fri Oct 23 12:04:29 2015
@@ -1,9 +1,11 @@
+
+from __future__ import print_function
import os
import lldbtest
from builder_base import *
-#print "Hello, darwin plugin!"
+#print("Hello, darwin plugin!")
def buildDsym(sender=None, architecture=None, compiler=None, dictionary=None, clean=True):
"""Build the binaries with dsym debug info."""
Modified: lldb/trunk/test/python_api/breakpoint/TestBreakpointAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/breakpoint/TestBreakpointAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/breakpoint/TestBreakpointAPI.py (original)
+++ lldb/trunk/test/python_api/breakpoint/TestBreakpointAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBBreakpoint APIs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -25,7 +27,7 @@ class BreakpointAPITestCase(TestBase):
# Now create a breakpoint on main.c by name 'AFunction'.
breakpoint = target.BreakpointCreateByName('AFunction', 'a.out')
- #print "breakpoint:", breakpoint
+ #print("breakpoint:", breakpoint)
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
Modified: lldb/trunk/test/python_api/class_members/TestSBTypeClassMembers.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/class_members/TestSBTypeClassMembers.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/class_members/TestSBTypeClassMembers.py (original)
+++ lldb/trunk/test/python_api/class_members/TestSBTypeClassMembers.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBType APIs to fetch member function types.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py (original)
+++ lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py Fri Oct 23 12:04:29 2015
@@ -11,6 +11,8 @@ SBCommadnReturnObject, SBStream, and SBS
after default construction.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -27,7 +29,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBAddress(self):
obj = lldb.SBAddress()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_address
@@ -38,7 +40,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBBlock(self):
obj = lldb.SBBlock()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_block
@@ -49,7 +51,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBBreakpoint(self):
obj = lldb.SBBreakpoint()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_breakpoint
@@ -60,7 +62,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBBreakpointLocation(self):
obj = lldb.SBBreakpointLocation()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_breakpointlocation
@@ -71,7 +73,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBBroadcaster(self):
obj = lldb.SBBroadcaster()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_broadcaster
@@ -83,7 +85,7 @@ class APIDefaultConstructorTestCase(Test
"""SBCommandReturnObject object is valid after default construction."""
obj = lldb.SBCommandReturnObject()
if self.TraceOn():
- print obj
+ print(obj)
self.assertTrue(obj)
@python_api_test
@@ -91,7 +93,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBCommunication(self):
obj = lldb.SBCommunication()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_communication
@@ -102,7 +104,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBCompileUnit(self):
obj = lldb.SBCompileUnit()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_compileunit
@@ -113,7 +115,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBDebugger(self):
obj = lldb.SBDebugger()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_debugger
@@ -125,7 +127,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBError(self):
obj = lldb.SBError()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_error
@@ -138,7 +140,7 @@ class APIDefaultConstructorTestCase(Test
# This is just to test that typemap, as defined in lldb.swig, works.
obj2 = lldb.SBEvent(0, "abc")
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_event
@@ -150,7 +152,7 @@ class APIDefaultConstructorTestCase(Test
# This is just to test that FileSpec(None) does not crash.
obj2 = lldb.SBFileSpec(None, True)
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_filespec
@@ -161,7 +163,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBFrame(self):
obj = lldb.SBFrame()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_frame
@@ -172,7 +174,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBFunction(self):
obj = lldb.SBFunction()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_function
@@ -183,7 +185,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBInstruction(self):
obj = lldb.SBInstruction()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_instruction
@@ -194,7 +196,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBInstructionList(self):
obj = lldb.SBInstructionList()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_instructionlist
@@ -205,7 +207,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBLineEntry(self):
obj = lldb.SBLineEntry()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_lineentry
@@ -216,7 +218,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBListener(self):
obj = lldb.SBListener()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_listener
@@ -227,7 +229,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBModule(self):
obj = lldb.SBModule()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_module
@@ -238,7 +240,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBProcess(self):
obj = lldb.SBProcess()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_process
@@ -249,7 +251,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBSection(self):
obj = lldb.SBSection()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_section
@@ -261,7 +263,7 @@ class APIDefaultConstructorTestCase(Test
"""SBStream object is valid after default construction."""
obj = lldb.SBStream()
if self.TraceOn():
- print obj
+ print(obj)
self.assertTrue(obj)
@python_api_test
@@ -269,7 +271,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBStringList(self):
obj = lldb.SBStringList()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_stringlist
@@ -280,7 +282,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBSymbol(self):
obj = lldb.SBSymbol()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_symbol
@@ -291,7 +293,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBSymbolContext(self):
obj = lldb.SBSymbolContext()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_symbolcontext
@@ -303,7 +305,7 @@ class APIDefaultConstructorTestCase(Test
"""SBSymbolContextList object is valid after default construction."""
obj = lldb.SBSymbolContextList()
if self.TraceOn():
- print obj
+ print(obj)
self.assertTrue(obj)
@python_api_test
@@ -311,7 +313,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBTarget(self):
obj = lldb.SBTarget()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_target
@@ -322,7 +324,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBThread(self):
obj = lldb.SBThread()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_thread
@@ -334,7 +336,7 @@ class APIDefaultConstructorTestCase(Test
try:
obj = lldb.SBType()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# If we reach here, the test fails.
self.fail("lldb.SBType() should fail, not succeed!")
@@ -353,7 +355,7 @@ class APIDefaultConstructorTestCase(Test
"""SBTypeList object is valid after default construction."""
obj = lldb.SBTypeList()
if self.TraceOn():
- print obj
+ print(obj)
self.assertTrue(obj)
@python_api_test
@@ -361,7 +363,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBValue(self):
obj = lldb.SBValue()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_value
@@ -372,7 +374,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBValueList(self):
obj = lldb.SBValueList()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_valuelist
@@ -383,7 +385,7 @@ class APIDefaultConstructorTestCase(Test
def test_SBWatchpoint(self):
obj = lldb.SBWatchpoint()
if self.TraceOn():
- print obj
+ print(obj)
self.assertFalse(obj)
# Do fuzz testing on the invalid obj, it should not crash lldb.
import sb_watchpoint
Modified: lldb/trunk/test/python_api/disassemble-raw-data/TestDisassembleRawData.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/disassemble-raw-data/TestDisassembleRawData.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/disassemble-raw-data/TestDisassembleRawData.py (original)
+++ lldb/trunk/test/python_api/disassemble-raw-data/TestDisassembleRawData.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python API to disassemble raw machine code bytes
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -28,9 +30,9 @@ class DisassembleRawDataTestCase(TestBas
inst = insts.GetInstructionAtIndex(0)
if self.TraceOn():
- print
- print "Raw bytes: ", [hex(x) for x in raw_bytes]
- print "Disassembled%s" % str(inst)
+ print()
+ print("Raw bytes: ", [hex(x) for x in raw_bytes])
+ print("Disassembled%s" % str(inst))
self.assertTrue (inst.GetMnemonic(target) == "movq")
self.assertTrue (inst.GetOperands(target) == '%' + "rsp, " + '%' + "rbp")
Modified: lldb/trunk/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py (original)
+++ lldb/trunk/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python API to disassemble raw machine code bytes
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -31,9 +33,9 @@ class Disassemble_VST1_64(TestBase):
insts = target.GetInstructions(lldb.SBAddress(), raw_bytes)
if self.TraceOn():
- print
+ print()
for i in insts:
- print "Disassembled%s" % str(i)
+ print("Disassembled%s" % str(i))
# Remove the following return statement when the radar is fixed.
return
@@ -48,8 +50,8 @@ class Disassemble_VST1_64(TestBase):
inst = insts.GetInstructionAtIndex(0)
if self.TraceOn():
- print
- print "Raw bytes: ", [hex(x) for x in raw_bytes]
- print "Disassembled%s" % str(inst)
+ print()
+ print("Raw bytes: ", [hex(x) for x in raw_bytes])
+ print("Disassembled%s" % str(inst))
self.assertTrue (inst.GetMnemonic(target) == "vst1.64")
Modified: lldb/trunk/test/python_api/event/TestEvents.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/event/TestEvents.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/event/TestEvents.py (original)
+++ lldb/trunk/test/python_api/event/TestEvents.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb Python event APIs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -69,17 +71,17 @@ class EventAPITestCase(TestBase):
# After that, the thread exits.
while not count > 3:
if traceOn:
- print "Try wait for event..."
+ print("Try wait for event...")
if listener.WaitForEvent(5, event):
if traceOn:
desc = lldbutil.get_description(event)
- print "Event description:", desc
- print "Event data flavor:", event.GetDataFlavor()
- print "Process state:", lldbutil.state_type_to_str(process.GetState())
- print
+ print("Event description:", desc)
+ print("Event data flavor:", event.GetDataFlavor())
+ print("Process state:", lldbutil.state_type_to_str(process.GetState()))
+ print()
else:
if traceOn:
- print "timeout occurred waiting for event..."
+ print("timeout occurred waiting for event...")
count = count + 1
return
@@ -112,7 +114,7 @@ class EventAPITestCase(TestBase):
# Now create a breakpoint on main.c by name 'c'.
breakpoint = target.BreakpointCreateByName('c', 'a.out')
- #print "breakpoint:", breakpoint
+ #print("breakpoint:", breakpoint)
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
@@ -146,12 +148,12 @@ class EventAPITestCase(TestBase):
# Let's only try at most 3 times to retrieve any kind of event.
while not count > 3:
if listener.WaitForEvent(5, event):
- #print "Got a valid event:", event
- #print "Event data flavor:", event.GetDataFlavor()
- #print "Event type:", lldbutil.state_type_to_str(event.GetType())
+ #print("Got a valid event:", event)
+ #print("Event data flavor:", event.GetDataFlavor())
+ #print("Event type:", lldbutil.state_type_to_str(event.GetType()))
return
count = count + 1
- print "Timeout: listener.WaitForEvent"
+ print("Timeout: listener.WaitForEvent")
return
@@ -186,7 +188,7 @@ class EventAPITestCase(TestBase):
# Now create a breakpoint on main.c by name 'c'.
breakpoint = target.BreakpointCreateByName('c', 'a.out')
- #print "breakpoint:", breakpoint
+ #print("breakpoint:", breakpoint)
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
@@ -225,7 +227,7 @@ class EventAPITestCase(TestBase):
import threading
class MyListeningThread(threading.Thread):
def run(self):
- #print "Running MyListeningThread:", self
+ #print("Running MyListeningThread:", self)
# Regular expression pattern for the event description.
pattern = re.compile("data = {.*, state = (.*)}$")
@@ -235,7 +237,7 @@ class EventAPITestCase(TestBase):
while True:
if listener.WaitForEvent(5, event):
desc = lldbutil.get_description(event)
- #print "Event description:", desc
+ #print("Event description:", desc)
match = pattern.search(desc)
if not match:
break;
@@ -256,7 +258,7 @@ class EventAPITestCase(TestBase):
break
else:
break
- print "Timeout: listener.WaitForEvent"
+ print("Timeout: listener.WaitForEvent")
count = count + 1
if count > 6:
break
Modified: lldb/trunk/test/python_api/findvalue_duplist/TestSBFrameFindValue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/findvalue_duplist/TestSBFrameFindValue.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/findvalue_duplist/TestSBFrameFindValue.py (original)
+++ lldb/trunk/test/python_api/findvalue_duplist/TestSBFrameFindValue.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that SBFrame::FindValue finds things but does not duplicate the entire variables list"""
+from __future__ import print_function
+
import lldb_shared
import os, sys, time
Modified: lldb/trunk/test/python_api/formatters/TestFormattersSBAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/formatters/TestFormattersSBAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/formatters/TestFormattersSBAPI.py (original)
+++ lldb/trunk/test/python_api/formatters/TestFormattersSBAPI.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test Python APIs for working with formatters"""
+from __future__ import print_function
+
import lldb_shared
import os, sys, time
@@ -324,19 +326,19 @@ class SBFormattersAPITestCase(TestBase):
frame = self.dbg.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame()
int_vector = frame.FindVariable("int_vector")
if self.TraceOn():
- print int_vector
+ print(int_vector)
self.assertTrue(int_vector.GetNumChildren() == 0, 'synthetic vector is empty')
self.runCmd('settings set target.enable-synthetic-value false')
frame = self.dbg.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame()
int_vector = frame.FindVariable("int_vector")
if self.TraceOn():
- print int_vector
+ print(int_vector)
self.assertFalse(int_vector.GetNumChildren() == 0, '"physical" vector is not empty')
self.runCmd('settings set target.enable-synthetic-value true')
frame = self.dbg.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame()
int_vector = frame.FindVariable("int_vector")
if self.TraceOn():
- print int_vector
+ print(int_vector)
self.assertTrue(int_vector.GetNumChildren() == 0, 'synthetic vector is still empty')
Modified: lldb/trunk/test/python_api/frame/TestFrames.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/frame/TestFrames.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/frame/TestFrames.py (original)
+++ lldb/trunk/test/python_api/frame/TestFrames.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@ Use lldb Python SBFrame API to get the a
And other SBFrame API tests.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -27,7 +29,7 @@ class FrameAPITestCase(TestBase):
# Now create a breakpoint on main.c by name 'c'.
breakpoint = target.BreakpointCreateByName('c', 'a.out')
- #print "breakpoint:", breakpoint
+ #print("breakpoint:", breakpoint)
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
@@ -52,7 +54,7 @@ class FrameAPITestCase(TestBase):
for i in range(numFrames):
frame = thread.GetFrameAtIndex(i)
if self.TraceOn():
- print "frame:", frame
+ print("frame:", frame)
name = frame.GetFunction().GetName()
if name == 'a':
@@ -70,7 +72,7 @@ class FrameAPITestCase(TestBase):
argList.append("(%s)%s=%s" % (val.GetTypeName(),
val.GetName(),
val.GetValue()))
- print >> session, "%s(%s)" % (name, ", ".join(argList))
+ print("%s(%s)" % (name, ", ".join(argList)), file=session)
# Also check the generic pc & stack pointer. We can't test their absolute values,
# but they should be valid. Uses get_GPRs() from the lldbutil module.
@@ -84,7 +86,7 @@ class FrameAPITestCase(TestBase):
self.assertTrue (sp_value, "We should have a valid Stack Pointer.")
self.assertTrue (int(sp_value.GetValue(), 0) == frame.GetSP(), "SP gotten as a value should equal frame's GetSP")
- print >> session, "---"
+ print("---", file=session)
process.Continue()
# At this point, the inferior process should have exited.
@@ -97,8 +99,8 @@ class FrameAPITestCase(TestBase):
# o a((int)val=1, (char)ch='A')
# o a((int)val=3, (char)ch='A')
if self.TraceOn():
- print "Full stack traces when stopped on the breakpoint 'c':"
- print session.getvalue()
+ print("Full stack traces when stopped on the breakpoint 'c':")
+ print(session.getvalue())
self.expect(session.getvalue(), "Argugment values displayed correctly",
exe=False,
substrs = ["a((int)val=1, (char)ch='A')",
@@ -116,7 +118,7 @@ class FrameAPITestCase(TestBase):
# Now create a breakpoint on main.c by name 'c'.
breakpoint = target.BreakpointCreateByName('c', 'a.out')
- #print "breakpoint:", breakpoint
+ #print("breakpoint:", breakpoint)
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
@@ -131,15 +133,15 @@ class FrameAPITestCase(TestBase):
thread = process.GetThreadAtIndex(0)
frame = thread.GetFrameAtIndex(0)
if self.TraceOn():
- print "frame:", frame
+ print("frame:", frame)
# Boundary condition testings.
val1 = frame.FindVariable(None, True)
val2 = frame.FindVariable(None, False)
val3 = frame.FindValue(None, lldb.eValueTypeVariableGlobal)
if self.TraceOn():
- print "val1:", val1
- print "val2:", val2
+ print("val1:", val1)
+ print("val2:", val2)
frame.EvaluateExpression(None)
@@ -155,7 +157,7 @@ class FrameAPITestCase(TestBase):
# Now create a breakpoint on main.c by name 'c'.
breakpoint = target.BreakpointCreateByName('c', 'a.out')
- #print "breakpoint:", breakpoint
+ #print("breakpoint:", breakpoint)
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
@@ -172,7 +174,7 @@ class FrameAPITestCase(TestBase):
frameEntered = thread.GetFrameAtIndex(0)
if self.TraceOn():
- print frameEntered
+ print(frameEntered)
lldbutil.print_stacktrace(thread)
self.assertTrue(frameEntered)
@@ -182,7 +184,7 @@ class FrameAPITestCase(TestBase):
self.assertTrue(thread)
frameNow = thread.GetFrameAtIndex(0)
if self.TraceOn():
- print frameNow
+ print(frameNow)
lldbutil.print_stacktrace(thread)
self.assertTrue(frameNow)
@@ -193,7 +195,7 @@ class FrameAPITestCase(TestBase):
thread.StepOutOfFrame(frameNow)
frameOutOfC = thread.GetFrameAtIndex(0)
if self.TraceOn():
- print frameOutOfC
+ print(frameOutOfC)
lldbutil.print_stacktrace(thread)
self.assertTrue(frameOutOfC)
Modified: lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py (original)
+++ lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Testlldb Python SBFrame APIs IsInlined() and GetFunctionName().
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -33,7 +35,7 @@ class InlinedFrameAPITestCase(TestBase):
# Now create a breakpoint on main.c by the name of 'inner_inline'.
breakpoint = target.BreakpointCreateByName('inner_inline', 'a.out')
- #print "breakpoint:", breakpoint
+ #print("breakpoint:", breakpoint)
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() > 1,
VALID_BREAKPOINT)
@@ -48,8 +50,8 @@ class InlinedFrameAPITestCase(TestBase):
import lldbutil
stack_traces1 = lldbutil.print_stacktraces(process, string_buffer=True)
if self.TraceOn():
- print "Full stack traces when first stopped on the breakpoint 'inner_inline':"
- print stack_traces1
+ print("Full stack traces when first stopped on the breakpoint 'inner_inline':")
+ print(stack_traces1)
# The first breakpoint should correspond to an inlined call frame.
# If it's an inlined call frame, expect to find, in the stack trace,
@@ -70,7 +72,7 @@ class InlinedFrameAPITestCase(TestBase):
PROCESS_STOPPED)
stack_traces2 = lldbutil.print_stacktraces(process, string_buffer=True)
if self.TraceOn():
- print "Full stack traces when stopped on the breakpoint 'inner_inline' for the second time:"
- print stack_traces2
+ print("Full stack traces when stopped on the breakpoint 'inner_inline' for the second time:")
+ print(stack_traces2)
self.expect(stack_traces2, "Second stop at %s:%d" % (self.source, self.second_stop), exe=False,
substrs = ['%s:%d' % (self.source, self.second_stop)])
Modified: lldb/trunk/test/python_api/function_symbol/TestDisasmAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/function_symbol/TestDisasmAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/function_symbol/TestDisasmAPI.py (original)
+++ lldb/trunk/test/python_api/function_symbol/TestDisasmAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test retrieval of SBAddress from function/symbol, disassembly, and SBAddress APIs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -33,8 +35,8 @@ class DisasmAPITestCase(TestBase):
# Now create the two breakpoints inside function 'a'.
breakpoint1 = target.BreakpointCreateByLocation('main.c', self.line1)
breakpoint2 = target.BreakpointCreateByLocation('main.c', self.line2)
- #print "breakpoint1:", breakpoint1
- #print "breakpoint2:", breakpoint2
+ #print("breakpoint1:", breakpoint1)
+ #print("breakpoint2:", breakpoint2)
self.assertTrue(breakpoint1 and
breakpoint1.GetNumLocations() == 1,
VALID_BREAKPOINT)
@@ -55,14 +57,14 @@ class DisasmAPITestCase(TestBase):
self.assertTrue(lineEntry.GetLine() == self.line1)
address1 = lineEntry.GetStartAddress()
- #print "address1:", address1
+ #print("address1:", address1)
# Now call SBTarget.ResolveSymbolContextForAddress() with address1.
context1 = target.ResolveSymbolContextForAddress(address1, lldb.eSymbolContextEverything)
self.assertTrue(context1)
if self.TraceOn():
- print "context1:", context1
+ print("context1:", context1)
# Continue the inferior, the breakpoint 2 should be hit.
process.Continue()
@@ -80,24 +82,24 @@ class DisasmAPITestCase(TestBase):
disasm_output = lldbutil.disassemble(target, symbol)
if self.TraceOn():
- print "symbol:", symbol
- print "disassembly=>\n", disasm_output
+ print("symbol:", symbol)
+ print("disassembly=>\n", disasm_output)
disasm_output = lldbutil.disassemble(target, function)
if self.TraceOn():
- print "function:", function
- print "disassembly=>\n", disasm_output
+ print("function:", function)
+ print("disassembly=>\n", disasm_output)
sa1 = symbol.GetStartAddress()
- #print "sa1:", sa1
- #print "sa1.GetFileAddress():", hex(sa1.GetFileAddress())
+ #print("sa1:", sa1)
+ #print("sa1.GetFileAddress():", hex(sa1.GetFileAddress()))
#ea1 = symbol.GetEndAddress()
- #print "ea1:", ea1
+ #print("ea1:", ea1)
sa2 = function.GetStartAddress()
- #print "sa2:", sa2
- #print "sa2.GetFileAddress():", hex(sa2.GetFileAddress())
+ #print("sa2:", sa2)
+ #print("sa2.GetFileAddress():", hex(sa2.GetFileAddress()))
#ea2 = function.GetEndAddress()
- #print "ea2:", ea2
+ #print("ea2:", ea2)
self.assertTrue(sa1 and sa2 and sa1 == sa2,
"The two starting addresses should be the same")
Modified: lldb/trunk/test/python_api/function_symbol/TestSymbolAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/function_symbol/TestSymbolAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/function_symbol/TestSymbolAPI.py (original)
+++ lldb/trunk/test/python_api/function_symbol/TestSymbolAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test newly added SBSymbol and SBAddress APIs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -34,8 +36,8 @@ class SymbolAPITestCase(TestBase):
# Now create the two breakpoints inside function 'a'.
breakpoint1 = target.BreakpointCreateByLocation('main.c', self.line1)
breakpoint2 = target.BreakpointCreateByLocation('main.c', self.line2)
- #print "breakpoint1:", breakpoint1
- #print "breakpoint2:", breakpoint2
+ #print("breakpoint1:", breakpoint1)
+ #print("breakpoint2:", breakpoint2)
self.assertTrue(breakpoint1 and
breakpoint1.GetNumLocations() == 1,
VALID_BREAKPOINT)
@@ -74,5 +76,5 @@ class SymbolAPITestCase(TestBase):
# Now verify that both addresses point to the same module.
if self.TraceOn():
- print "UUID:", addr_line1.GetModule().GetUUIDString()
+ print("UUID:", addr_line1.GetModule().GetUUIDString())
self.assertTrue(addr_line1.GetModule().GetUUIDString() == addr_line2.GetModule().GetUUIDString())
Modified: lldb/trunk/test/python_api/hello_world/TestHelloWorld.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/hello_world/TestHelloWorld.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/hello_world/TestHelloWorld.py (original)
+++ lldb/trunk/test/python_api/hello_world/TestHelloWorld.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test Python APIs for target (launch and attach), breakpoint, and process."""
+from __future__ import print_function
+
import lldb_shared
import os, sys, time
Modified: lldb/trunk/test/python_api/interpreter/TestCommandInterpreterAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/interpreter/TestCommandInterpreterAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/interpreter/TestCommandInterpreterAPI.py (original)
+++ lldb/trunk/test/python_api/interpreter/TestCommandInterpreterAPI.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test the SBCommandInterpreter APIs."""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -56,7 +58,7 @@ class CommandInterpreterAPICase(TestBase
res.AppendMessage("Just appended a message.")
res.AppendMessage(None)
if self.TraceOn():
- print res
+ print(res)
process = ci.GetProcess()
self.assertTrue(process)
Modified: lldb/trunk/test/python_api/lldbutil/frame/TestFrameUtils.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/lldbutil/frame/TestFrameUtils.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/lldbutil/frame/TestFrameUtils.py (original)
+++ lldb/trunk/test/python_api/lldbutil/frame/TestFrameUtils.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test utility functions for the frame object.
"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -53,5 +55,5 @@ class FrameUtilsTestCase(TestBase):
self.assertTrue(frame0_args and parent_args and "(int)val=1" in frame0_args)
if self.TraceOn():
lldbutil.print_stacktrace(thread)
- print "Current frame: %s" % frame0_args
- print "Parent frame: %s" % parent_args
+ print("Current frame: %s" % frame0_args)
+ print("Parent frame: %s" % parent_args)
Modified: lldb/trunk/test/python_api/lldbutil/iter/TestLLDBIterator.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/lldbutil/iter/TestLLDBIterator.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/lldbutil/iter/TestLLDBIterator.py (original)
+++ lldb/trunk/test/python_api/lldbutil/iter/TestLLDBIterator.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the iteration protocol for some lldb container objects.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -49,8 +51,8 @@ class LLDBIteratorTestCase(TestBase):
self.assertTrue(len(yours) == len(mine))
for i in range(len(yours)):
if self.TraceOn():
- print "yours[%d]='%s'" % (i, get_description(yours[i]))
- print "mine[%d]='%s'" % (i, get_description(mine[i]))
+ print("yours[%d]='%s'" % (i, get_description(yours[i])))
+ print("mine[%d]='%s'" % (i, get_description(mine[i])))
self.assertTrue(yours[i] == mine[i],
"UUID+FileSpec of yours[{0}] and mine[{0}] matches".format(i))
@@ -81,8 +83,8 @@ class LLDBIteratorTestCase(TestBase):
self.assertTrue(len(yours) == len(mine))
for i in range(len(yours)):
if self.TraceOn():
- print "yours[%d]='%s'" % (i, get_description(yours[i]))
- print "mine[%d]='%s'" % (i, get_description(mine[i]))
+ print("yours[%d]='%s'" % (i, get_description(yours[i])))
+ print("mine[%d]='%s'" % (i, get_description(mine[i])))
self.assertTrue(yours[i] == mine[i],
"ID of yours[{0}] and mine[{0}] matches".format(i))
@@ -115,6 +117,6 @@ class LLDBIteratorTestCase(TestBase):
for frame in thread:
self.assertTrue(frame.GetThread().GetThreadID() == ID)
if self.TraceOn():
- print frame
+ print(frame)
self.assertTrue(stopped_due_to_breakpoint)
Modified: lldb/trunk/test/python_api/lldbutil/iter/TestRegistersIterator.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/lldbutil/iter/TestRegistersIterator.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/lldbutil/iter/TestRegistersIterator.py (original)
+++ lldb/trunk/test/python_api/lldbutil/iter/TestRegistersIterator.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test the iteration protocol for frame registers.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -44,35 +46,35 @@ class RegistersIteratorTestCase(TestBase
for frame in thread:
# Dump the registers of this frame using lldbutil.get_GPRs() and friends.
if self.TraceOn():
- print frame
+ print(frame)
REGs = lldbutil.get_GPRs(frame)
num = len(REGs)
if self.TraceOn():
- print "\nNumber of general purpose registers: %d" % num
+ print("\nNumber of general purpose registers: %d" % num)
for reg in REGs:
self.assertTrue(reg)
if self.TraceOn():
- print "%s => %s" % (reg.GetName(), reg.GetValue())
+ print("%s => %s" % (reg.GetName(), reg.GetValue()))
REGs = lldbutil.get_FPRs(frame)
num = len(REGs)
if self.TraceOn():
- print "\nNumber of floating point registers: %d" % num
+ print("\nNumber of floating point registers: %d" % num)
for reg in REGs:
self.assertTrue(reg)
if self.TraceOn():
- print "%s => %s" % (reg.GetName(), reg.GetValue())
+ print("%s => %s" % (reg.GetName(), reg.GetValue()))
REGs = lldbutil.get_ESRs(frame)
if self.platformIsDarwin():
num = len(REGs)
if self.TraceOn():
- print "\nNumber of exception state registers: %d" % num
+ print("\nNumber of exception state registers: %d" % num)
for reg in REGs:
self.assertTrue(reg)
if self.TraceOn():
- print "%s => %s" % (reg.GetName(), reg.GetValue())
+ print("%s => %s" % (reg.GetName(), reg.GetValue()))
else:
self.assertIsNone(REGs)
Modified: lldb/trunk/test/python_api/lldbutil/process/TestPrintStackTraces.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/lldbutil/process/TestPrintStackTraces.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/lldbutil/process/TestPrintStackTraces.py (original)
+++ lldb/trunk/test/python_api/lldbutil/process/TestPrintStackTraces.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBprocess and SBThread APIs with printing of the stack traces using lldbutil.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/python_api/module_section/TestModuleAndSection.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/module_section/TestModuleAndSection.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/module_section/TestModuleAndSection.py (original)
+++ lldb/trunk/test/python_api/module_section/TestModuleAndSection.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test some SBModule and SBSection APIs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -28,31 +30,31 @@ class ModuleAndSectionAPIsTestCase(TestB
if not self.TraceOn():
self.HideStdout()
- print "Number of modules for the target: %d" % target.GetNumModules()
+ print("Number of modules for the target: %d" % target.GetNumModules())
for module in target.module_iter():
- print module
+ print(module)
# Get the executable module at index 0.
exe_module = target.GetModuleAtIndex(0)
- print "Exe module: %s" % str(exe_module)
- print "Number of sections: %d" % exe_module.GetNumSections()
+ print("Exe module: %s" % str(exe_module))
+ print("Number of sections: %d" % exe_module.GetNumSections())
INDENT = ' ' * 4
INDENT2 = INDENT * 2
for sec in exe_module.section_iter():
- print sec
- print INDENT + "Number of subsections: %d" % sec.GetNumSubSections()
+ print(sec)
+ print(INDENT + "Number of subsections: %d" % sec.GetNumSubSections())
if sec.GetNumSubSections() == 0:
for sym in exe_module.symbol_in_section_iter(sec):
- print INDENT + str(sym)
- print INDENT + "symbol type: %s" % symbol_type_to_str(sym.GetType())
+ print(INDENT + str(sym))
+ print(INDENT + "symbol type: %s" % symbol_type_to_str(sym.GetType()))
else:
for subsec in sec:
- print INDENT + str(subsec)
+ print(INDENT + str(subsec))
# Now print the symbols belonging to the subsection....
for sym in exe_module.symbol_in_section_iter(subsec):
- print INDENT2 + str(sym)
- print INDENT2 + "symbol type: %s" % symbol_type_to_str(sym.GetType())
+ print(INDENT2 + str(sym))
+ print(INDENT2 + "symbol type: %s" % symbol_type_to_str(sym.GetType()))
@python_api_test
def test_module_and_section_boundary_condition(self):
@@ -68,15 +70,15 @@ class ModuleAndSectionAPIsTestCase(TestB
if not self.TraceOn():
self.HideStdout()
- print "Number of modules for the target: %d" % target.GetNumModules()
+ print("Number of modules for the target: %d" % target.GetNumModules())
for module in target.module_iter():
- print module
+ print(module)
# Get the executable module at index 0.
exe_module = target.GetModuleAtIndex(0)
- print "Exe module: %s" % str(exe_module)
- print "Number of sections: %d" % exe_module.GetNumSections()
+ print("Exe module: %s" % str(exe_module))
+ print("Number of sections: %d" % exe_module.GetNumSections())
# Boundary condition testings. Should not crash lldb!
exe_module.FindFirstType(None)
@@ -88,7 +90,7 @@ class ModuleAndSectionAPIsTestCase(TestB
# Get the section at index 1.
if exe_module.GetNumSections() > 1:
sec1 = exe_module.GetSectionAtIndex(1)
- print sec1
+ print(sec1)
else:
sec1 = None
@@ -109,16 +111,17 @@ class ModuleAndSectionAPIsTestCase(TestB
if not self.TraceOn():
self.HideStdout()
- print "Number of modules for the target: %d" % target.GetNumModules()
+ print("Number of modules for the target: %d" % target.GetNumModules())
for module in target.module_iter():
- print module
+ print(module)
# Get the executable module at index 0.
exe_module = target.GetModuleAtIndex(0)
- print "Exe module: %s" % str(exe_module)
- print "Number of compile units: %d" % exe_module.GetNumCompileUnits()
+ print("Exe module: %s" % str(exe_module))
+ print("Number of compile units: %d" % exe_module.GetNumCompileUnits())
INDENT = ' ' * 4
INDENT2 = INDENT * 2
for cu in exe_module.compile_unit_iter():
- print cu
+ print(cu)
+
Modified: lldb/trunk/test/python_api/objc_type/TestObjCType.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/objc_type/TestObjCType.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/objc_type/TestObjCType.py (original)
+++ lldb/trunk/test/python_api/objc_type/TestObjCType.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBType for ObjC classes.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/python_api/process/TestProcessAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/process/TestProcessAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/process/TestProcessAPI.py (original)
+++ lldb/trunk/test/python_api/process/TestProcessAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBProcess APIs, including ReadMemory(), WriteMemory(), and others.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -50,7 +52,7 @@ class ProcessAPITestCase(TestBase):
if not error.Success():
self.fail("SBProcess.ReadMemory() failed")
if self.TraceOn():
- print "memory content:", content
+ print("memory content:", content)
self.expect(content, "Result from SBProcess.ReadMemory() matches our expected output: 'x'",
exe=False,
@@ -63,7 +65,7 @@ class ProcessAPITestCase(TestBase):
if not error.Success():
self.fail("SBProcess.ReadCStringFromMemory() failed")
if self.TraceOn():
- print "cstring read is:", cstring
+ print("cstring read is:", cstring)
self.expect(cstring, "Result from SBProcess.ReadCStringFromMemory() matches our expected output",
exe=False,
@@ -80,7 +82,7 @@ class ProcessAPITestCase(TestBase):
if not error.Success():
self.fail("SBProcess.ReadCStringFromMemory() failed")
if self.TraceOn():
- print "cstring read is:", cstring
+ print("cstring read is:", cstring)
self.expect(cstring, "Result from SBProcess.ReadCStringFromMemory() matches our expected output",
exe=False,
@@ -97,7 +99,7 @@ class ProcessAPITestCase(TestBase):
if not error.Success():
self.fail("SBProcess.ReadCStringFromMemory() failed")
if self.TraceOn():
- print "uint32 read is:", my_uint32
+ print("uint32 read is:", my_uint32)
if my_uint32 != 12345:
self.fail("Result from SBProcess.ReadUnsignedFromMemory() does not match our expected output")
@@ -148,7 +150,7 @@ class ProcessAPITestCase(TestBase):
if not error.Success():
self.fail("SBProcess.ReadMemory() failed")
if self.TraceOn():
- print "memory content:", content
+ print("memory content:", content)
self.expect(content, "Result from SBProcess.ReadMemory() matches our expected output: 'a'",
exe=False,
@@ -242,7 +244,7 @@ class ProcessAPITestCase(TestBase):
# Dump the memory content....
if self.TraceOn():
for i in new_bytes:
- print "byte:", i
+ print("byte:", i)
@python_api_test
def test_remote_launch(self):
@@ -257,7 +259,7 @@ class ProcessAPITestCase(TestBase):
process = target.LaunchSimple (None, None, self.get_process_working_directory())
if self.TraceOn():
- print "process state:", state_type_to_str(process.GetState())
+ print("process state:", state_type_to_str(process.GetState()))
self.assertTrue(process.GetState() != lldb.eStateConnected)
error = lldb.SBError()
@@ -283,4 +285,5 @@ class ProcessAPITestCase(TestBase):
error = lldb.SBError();
num = process.GetNumSupportedHardwareWatchpoints(error)
if self.TraceOn() and error.Success():
- print "Number of supported hardware watchpoints: %d" % num
+ print("Number of supported hardware watchpoints: %d" % num)
+
Modified: lldb/trunk/test/python_api/process/io/TestProcessIO.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/process/io/TestProcessIO.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/process/io/TestProcessIO.py (original)
+++ lldb/trunk/test/python_api/process/io/TestProcessIO.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test Python APIs for process IO."""
+from __future__ import print_function
+
import lldb_shared
import os, sys, time
@@ -164,7 +166,7 @@ class ProcessIOTestCase(TestBase):
self.assertTrue(self.process, PROCESS_IS_VALID)
if self.TraceOn():
- print "process launched."
+ print("process launched.")
# Frame #0 should be at our breakpoint.
threads = lldbutil.get_threads_stopped_at_breakpoint (self.process, self.breakpoint)
@@ -175,7 +177,7 @@ class ProcessIOTestCase(TestBase):
self.assertTrue(self.frame, "Frame 0 is valid.")
if self.TraceOn():
- print "process stopped at breakpoint, sending STDIN via LLDB API."
+ print("process stopped at breakpoint, sending STDIN via LLDB API.")
# Write data to stdin via the public API if we were asked to
if put_stdin:
@@ -193,8 +195,8 @@ class ProcessIOTestCase(TestBase):
# once "input line=>1" appears in stdout.
# See also main.c.
if self.TraceOn():
- print "output = '%s'" % output
- print "error = '%s'" % error
+ print("output = '%s'" % output)
+ print("error = '%s'" % error)
for line in self.lines:
check_line = 'input line to stdout: %s' % (line)
Modified: lldb/trunk/test/python_api/rdar-12481949/Test-rdar-12481949.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/rdar-12481949/Test-rdar-12481949.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/rdar-12481949/Test-rdar-12481949.py (original)
+++ lldb/trunk/test/python_api/rdar-12481949/Test-rdar-12481949.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Check that SBValue.GetValueAsSigned() does the right thing for a 32-bit -1.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/python_api/sbdata/TestSBData.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/sbdata/TestSBData.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/sbdata/TestSBData.py (original)
+++ lldb/trunk/test/python_api/sbdata/TestSBData.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test the SBData APIs."""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -41,16 +43,16 @@ class SBDataAPICase(TestBase):
frame = thread.GetSelectedFrame()
if self.TraceOn():
- print frame
+ print(frame)
foobar = frame.FindVariable('foobar')
self.assertTrue(foobar.IsValid())
if self.TraceOn():
- print foobar
+ print(foobar)
data = foobar.GetPointeeData(0, 2)
if self.TraceOn():
- print data
+ print(data)
offset = 0
error = lldb.SBError()
@@ -96,7 +98,7 @@ class SBDataAPICase(TestBase):
data = star_foobar.GetData()
if self.TraceOn():
- print data
+ print(data)
offset = 0
self.assert_data(data.GetUnsignedInt32, offset, 1)
@@ -114,12 +116,12 @@ class SBDataAPICase(TestBase):
new_foobar = foobar.CreateValueFromAddress("f00", foobar_addr, star_foobar.GetType())
self.assertTrue(new_foobar.IsValid())
if self.TraceOn():
- print new_foobar
+ print(new_foobar)
data = new_foobar.GetData()
if self.TraceOn():
- print data
+ print(data)
self.assertTrue(data.uint32[0] == 8, 'then foo[1].a == 8')
self.assertTrue(data.uint32[1] == 7, 'then foo[1].b == 7')
@@ -138,7 +140,7 @@ class SBDataAPICase(TestBase):
data = new_foobar.GetData()
if self.TraceOn():
- print data
+ print(data)
offset = 0
self.assert_data(data.GetUnsignedInt32, offset, 8)
@@ -155,10 +157,10 @@ class SBDataAPICase(TestBase):
data = barfoo.GetData()
if self.TraceOn():
- print barfoo
+ print(barfoo)
if self.TraceOn():
- print data
+ print(data)
offset = 0
self.assert_data(data.GetUnsignedInt32, offset, 1)
@@ -178,7 +180,7 @@ class SBDataAPICase(TestBase):
new_object = barfoo.CreateValueFromData("new_object",data,barfoo.GetType().GetBasicType(lldb.eBasicTypeInt))
if self.TraceOn():
- print new_object
+ print(new_object)
self.assertTrue(new_object.GetValue() == "1", 'new_object == 1')
@@ -192,7 +194,7 @@ class SBDataAPICase(TestBase):
data.Append(data2)
if self.TraceOn():
- print data
+ print(data)
# this breaks on EBCDIC
offset = 0
Modified: lldb/trunk/test/python_api/sbvalue_persist/TestSBValuePersist.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/sbvalue_persist/TestSBValuePersist.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/sbvalue_persist/TestSBValuePersist.py (original)
+++ lldb/trunk/test/python_api/sbvalue_persist/TestSBValuePersist.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test SBValue::Persist"""
+from __future__ import print_function
+
import lldb_shared
import os, sys, time
Modified: lldb/trunk/test/python_api/section/TestSectionAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/section/TestSectionAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/section/TestSectionAPI.py (original)
+++ lldb/trunk/test/python_api/section/TestSectionAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBSection APIs.
"""
+from __future__ import print_function
+
import lldb_shared
from lldbtest import *
Modified: lldb/trunk/test/python_api/signals/TestSignalsAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/signals/TestSignalsAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/signals/TestSignalsAPI.py (original)
+++ lldb/trunk/test/python_api/signals/TestSignalsAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBProcess APIs, including ReadMemory(), WriteMemory(), and others.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py (original)
+++ lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBSymbolContext APIs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -32,7 +34,7 @@ class SymbolContextAPITestCase(TestBase)
# Now create a breakpoint on main.c by name 'c'.
breakpoint = target.BreakpointCreateByName('c', 'a.out')
- #print "breakpoint:", breakpoint
+ #print("breakpoint:", breakpoint)
self.assertTrue(breakpoint and
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
@@ -64,14 +66,14 @@ class SymbolContextAPITestCase(TestBase)
function = context.GetFunction()
self.assertTrue(function)
- #print "function:", function
+ #print("function:", function)
block = context.GetBlock()
self.assertTrue(block)
- #print "block:", block
+ #print("block:", block)
lineEntry = context.GetLineEntry()
- #print "line entry:", lineEntry
+ #print("line entry:", lineEntry)
self.expect(lineEntry.GetFileSpec().GetDirectory(), "The line entry should have the correct directory",
exe=False,
substrs = [self.mydir])
Modified: lldb/trunk/test/python_api/target/TestTargetAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/target/TestTargetAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/target/TestTargetAPI.py (original)
+++ lldb/trunk/test/python_api/target/TestTargetAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBTarget APIs.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
@@ -308,8 +310,8 @@ class TargetAPITestCase(TestBase):
# Now create the two breakpoints inside function 'a'.
breakpoint1 = target.BreakpointCreateByLocation('main.c', self.line1)
breakpoint2 = target.BreakpointCreateByLocation('main.c', self.line2)
- #print "breakpoint1:", breakpoint1
- #print "breakpoint2:", breakpoint2
+ #print("breakpoint1:", breakpoint1)
+ #print("breakpoint2:", breakpoint2)
self.assertTrue(breakpoint1 and
breakpoint1.GetNumLocations() == 1,
VALID_BREAKPOINT)
@@ -344,23 +346,23 @@ class TargetAPITestCase(TestBase):
address2 = lineEntry.GetStartAddress()
- #print "address1:", address1
- #print "address2:", address2
+ #print("address1:", address1)
+ #print("address2:", address2)
# Now call SBTarget.ResolveSymbolContextForAddress() with the addresses from our line entry.
context1 = target.ResolveSymbolContextForAddress(address1, lldb.eSymbolContextEverything)
context2 = target.ResolveSymbolContextForAddress(address2, lldb.eSymbolContextEverything)
self.assertTrue(context1 and context2)
- #print "context1:", context1
- #print "context2:", context2
+ #print("context1:", context1)
+ #print("context2:", context2)
# Verify that the context point to the same function 'a'.
symbol1 = context1.GetSymbol()
symbol2 = context2.GetSymbol()
self.assertTrue(symbol1 and symbol2)
- #print "symbol1:", symbol1
- #print "symbol2:", symbol2
+ #print("symbol1:", symbol1)
+ #print("symbol2:", symbol2)
from lldbutil import get_description
desc1 = get_description(symbol1)
Modified: lldb/trunk/test/python_api/thread/TestThreadAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/thread/TestThreadAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/thread/TestThreadAPI.py (original)
+++ lldb/trunk/test/python_api/thread/TestThreadAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBThread APIs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -85,7 +87,7 @@ class ThreadAPITestCase(TestBase):
self.runCmd("process status")
proc_of_thread = thread.GetProcess()
- #print "proc_of_thread:", proc_of_thread
+ #print("proc_of_thread:", proc_of_thread)
self.assertTrue(proc_of_thread.GetProcessID() == process.GetProcessID())
def get_stop_description(self):
@@ -224,8 +226,8 @@ class ThreadAPITestCase(TestBase):
start_addr = lineEntry.GetStartAddress().GetLoadAddress(target)
end_addr = lineEntry.GetEndAddress().GetLoadAddress(target)
if self.TraceOn():
- print "start addr:", hex(start_addr)
- print "end addr:", hex(end_addr)
+ print("start addr:", hex(start_addr))
+ print("end addr:", hex(end_addr))
# Disable the breakpoint.
self.assertTrue(target.DisableAllBreakpoints())
Modified: lldb/trunk/test/python_api/type/TestTypeList.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/type/TestTypeList.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/type/TestTypeList.py (original)
+++ lldb/trunk/test/python_api/type/TestTypeList.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test SBType and SBTypeList API.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -51,7 +53,7 @@ class TypeAndTypeListTestCase(TestBase):
# Get the type 'Task'.
type_list = target.FindTypes('Task')
if self.TraceOn():
- print "Size of type_list from target.FindTypes('Task') query: %d" % type_list.GetSize()
+ print("Size of type_list from target.FindTypes('Task') query: %d" % type_list.GetSize())
self.assertTrue(len(type_list) >= 1) # a second Task make be scared up by the Objective-C runtime
for type in type_list:
self.assertTrue(type)
Modified: lldb/trunk/test/python_api/value/TestValueAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/value/TestValueAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/value/TestValueAPI.py (original)
+++ lldb/trunk/test/python_api/value/TestValueAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test some SBValue APIs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -73,10 +75,10 @@ class ValueAPITestCase(TestBase):
cvf = lldbutil.ChildVisitingFormatter(indent_child=2)
rdf = lldbutil.RecursiveDecentFormatter(indent_child=2)
if self.TraceOn():
- print fmt.format(days_of_week)
- print cvf.format(days_of_week)
- print cvf.format(weekdays)
- print rdf.format(g_table)
+ print(fmt.format(days_of_week))
+ print(cvf.format(days_of_week))
+ print(cvf.format(weekdays))
+ print(rdf.format(g_table))
# Get variable 'my_int_ptr'.
value = frame0.FindVariable('my_int_ptr')
Modified: lldb/trunk/test/python_api/value/change_values/TestChangeValueAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/value/change_values/TestChangeValueAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/value/change_values/TestChangeValueAPI.py (original)
+++ lldb/trunk/test/python_api/value/change_values/TestChangeValueAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test some SBValue APIs.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
Modified: lldb/trunk/test/python_api/value/linked_list/TestValueAPILinkedList.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/value/linked_list/TestValueAPILinkedList.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/value/linked_list/TestValueAPILinkedList.py (original)
+++ lldb/trunk/test/python_api/value/linked_list/TestValueAPILinkedList.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@ Test SBValue API linked_list_iter which
supports iteration till the end of list is reached.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -63,12 +65,12 @@ class ValueAsLinkedListTestCase(TestBase
# Make sure that 'next' corresponds to an SBValue with pointer type.
self.assertTrue(t.TypeIsPointerType())
if self.TraceOn():
- print cvf.format(t)
+ print(cvf.format(t))
list.append(int(t.GetChildMemberWithName("id").GetValue()))
# Sanity checks that the we visited all the items (no more, no less).
if self.TraceOn():
- print "visited IDs:", list
+ print("visited IDs:", list)
self.assertTrue(visitedIDs == list)
# Let's exercise the linked_list_iter() API again, this time supplying
@@ -93,12 +95,12 @@ class ValueAsLinkedListTestCase(TestBase
# Make sure that 'next' corresponds to an SBValue with pointer type.
self.assertTrue(t.TypeIsPointerType())
if self.TraceOn():
- print cvf.format(t)
+ print(cvf.format(t))
list.append(int(t.GetChildMemberWithName("id").GetValue()))
# Sanity checks that the we visited all the items (no more, no less).
if self.TraceOn():
- print "visited IDs:", list
+ print("visited IDs:", list)
self.assertTrue(visitedIDs == list)
# Get variable 'empty_task_head'.
@@ -110,7 +112,7 @@ class ValueAsLinkedListTestCase(TestBase
# There is no iterable item from empty_task_head.linked_list_iter().
for t in empty_task_head.linked_list_iter('next', eol):
if self.TraceOn():
- print cvf.format(t)
+ print(cvf.format(t))
list.append(int(t.GetChildMemberWithName("id").GetValue()))
self.assertTrue(len(list) == 0)
@@ -124,7 +126,7 @@ class ValueAsLinkedListTestCase(TestBase
# There 3 iterable items from task_evil.linked_list_iter(). :-)
for t in task_evil.linked_list_iter('next'):
if self.TraceOn():
- print cvf.format(t)
+ print(cvf.format(t))
list.append(int(t.GetChildMemberWithName("id").GetValue()))
self.assertTrue(len(list) == 3)
Modified: lldb/trunk/test/python_api/value_var_update/TestValueVarUpdate.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/value_var_update/TestValueVarUpdate.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/value_var_update/TestValueVarUpdate.py (original)
+++ lldb/trunk/test/python_api/value_var_update/TestValueVarUpdate.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test SBValue::GetValueDidChange"""
+from __future__ import print_function
+
import lldb_shared
import os, sys, time
Modified: lldb/trunk/test/python_api/watchpoint/TestSetWatchpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/watchpoint/TestSetWatchpoint.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/watchpoint/TestSetWatchpoint.py (original)
+++ lldb/trunk/test/python_api/watchpoint/TestSetWatchpoint.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python SBValue API to create a watchpoint for read_write of 'globl' var.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -61,7 +63,7 @@ class SetWatchpointAPITestCase(TestBase)
if not self.TraceOn():
self.HideStdout()
- print watchpoint
+ print(watchpoint)
# Continue. Expect the program to stop due to the variable being written to.
process.Continue()
Modified: lldb/trunk/test/python_api/watchpoint/TestWatchpointIgnoreCount.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/watchpoint/TestWatchpointIgnoreCount.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/watchpoint/TestWatchpointIgnoreCount.py (original)
+++ lldb/trunk/test/python_api/watchpoint/TestWatchpointIgnoreCount.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python SBWatchpoint API to set the ignore count.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -68,12 +70,12 @@ class WatchpointIgnoreCountTestCase(Test
self.assertTrue(watchpoint.GetIgnoreCount() == 0)
watch_id = watchpoint.GetID()
self.assertTrue(watch_id != 0)
- print watchpoint
+ print(watchpoint)
# Now immediately set the ignore count to 2. When we continue, expect the
# inferior to run to its completion without stopping due to watchpoint.
watchpoint.SetIgnoreCount(2)
- print watchpoint
+ print(watchpoint)
process.Continue()
# At this point, the inferior process should have exited.
@@ -83,4 +85,4 @@ class WatchpointIgnoreCountTestCase(Test
self.assertTrue(watchpoint)
self.assertTrue(watchpoint.GetWatchSize() == 4)
self.assertTrue(watchpoint.GetHitCount() == 2)
- print watchpoint
+ print(watchpoint)
Modified: lldb/trunk/test/python_api/watchpoint/TestWatchpointIter.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/watchpoint/TestWatchpointIter.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/watchpoint/TestWatchpointIter.py (original)
+++ lldb/trunk/test/python_api/watchpoint/TestWatchpointIter.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python SBTarget API to iterate on the watchpoint(s) for the target.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -84,11 +86,11 @@ class WatchpointIteratorTestCase(TestBas
# We currently only support hardware watchpoint. Verify that we have a
# meaningful hardware index at this point. Exercise the printed repr of
# SBWatchpointLocation.
- print watchpoint
+ print(watchpoint)
self.assertTrue(watchpoint.GetHardwareIndex() != -1)
# SBWatchpoint.GetDescription() takes a description level arg.
- print lldbutil.get_description(watchpoint, lldb.eDescriptionLevelFull)
+ print(lldbutil.get_description(watchpoint, lldb.eDescriptionLevelFull))
# Now disable the 'rw' watchpoint. The program won't stop when it reads
# 'global' next.
@@ -108,4 +110,5 @@ class WatchpointIteratorTestCase(TestBas
self.assertTrue(watchpoint)
self.assertTrue(watchpoint.GetWatchSize() == 4)
self.assertTrue(watchpoint.GetHitCount() == 1)
- print watchpoint
+ print(watchpoint)
+
Modified: lldb/trunk/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py (original)
+++ lldb/trunk/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test watchpoint condition API.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -71,7 +73,7 @@ class WatchpointConditionAPITestCase(Tes
if not self.TraceOn():
self.HideStdout()
- print watchpoint
+ print(watchpoint)
# Continue. Expect the program to stop due to the variable being written to.
process.Continue()
Modified: lldb/trunk/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py (original)
+++ lldb/trunk/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python SBValue.WatchPointee() API to create a watchpoint for write of '*g_char_ptr'.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -68,7 +70,7 @@ class SetWatchlocationAPITestCase(TestBa
if not self.TraceOn():
self.HideStdout()
- print watchpoint
+ print(watchpoint)
# Continue. Expect the program to stop due to the variable being written to.
process.Continue()
Modified: lldb/trunk/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py (original)
+++ lldb/trunk/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Use lldb Python SBtarget.WatchAddress() API to create a watchpoint for write of '*g_char_ptr'.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time
@@ -68,7 +70,7 @@ class TargetWatchAddressAPITestCase(Test
if not self.TraceOn():
self.HideStdout()
- print watchpoint
+ print(watchpoint)
# Continue. Expect the program to stop due to the variable being written to.
process.Continue()
Modified: lldb/trunk/test/redo.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/redo.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/redo.py (original)
+++ lldb/trunk/test/redo.py Fri Oct 23 12:04:29 2015
@@ -90,7 +90,7 @@ def redo(suffix, dir, names):
for name in names:
if name.endswith(suffix):
- #print "Find a log file:", name
+ #print("Find a log file:", name)
if name.startswith("Error") or name.startswith("Failure"):
if filename_components:
if not all([comp in name for comp in filename_components]):
@@ -166,7 +166,7 @@ def main():
print("No default session directory found, please specify it explicitly.")
usage()
- #print "The test directory:", test_dir
+ #print("The test directory:", test_dir)
session_dir_path = where(session_dir, test_dir)
print("Using session dir path:", session_dir_path)
Modified: lldb/trunk/test/settings/TestSettings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/TestSettings.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/settings/TestSettings.py (original)
+++ lldb/trunk/test/settings/TestSettings.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb settings command.
"""
+from __future__ import print_function
+
import lldb_shared
import os, time, re
Modified: lldb/trunk/test/settings/quoting/TestQuoting.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/quoting/TestQuoting.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/settings/quoting/TestQuoting.py (original)
+++ lldb/trunk/test/settings/quoting/TestQuoting.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test quoting of arguments to lldb commands
"""
+from __future__ import print_function
+
import lldb_shared
import os, time, re
Modified: lldb/trunk/test/source-manager/TestSourceManager.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/source-manager/TestSourceManager.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/source-manager/TestSourceManager.py (original)
+++ lldb/trunk/test/source-manager/TestSourceManager.py Fri Oct 23 12:04:29 2015
@@ -9,6 +9,8 @@ o test_modify_source_file_while_debuggin
Test the caching mechanism of the source manager.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
@@ -135,24 +137,24 @@ class SourceManagerTestCase(TestBase):
with open('main.c', 'r') as f:
original_content = f.read()
if self.TraceOn():
- print "original content:", original_content
+ print("original content:", original_content)
# Modify the in-memory copy of the original source code.
new_content = original_content.replace('Hello world', 'Hello lldb', 1)
# This is the function to restore the original content.
def restore_file():
- #print "os.path.getmtime() before restore:", os.path.getmtime('main.c')
+ #print("os.path.getmtime() before restore:", os.path.getmtime('main.c'))
time.sleep(1)
with open('main.c', 'wb') as f:
f.write(original_content)
if self.TraceOn():
with open('main.c', 'r') as f:
- print "content restored to:", f.read()
+ print("content restored to:", f.read())
# Touch the file just to be sure.
os.utime('main.c', None)
if self.TraceOn():
- print "os.path.getmtime() after restore:", os.path.getmtime('main.c')
+ print("os.path.getmtime() after restore:", os.path.getmtime('main.c'))
@@ -161,8 +163,8 @@ class SourceManagerTestCase(TestBase):
time.sleep(1)
f.write(new_content)
if self.TraceOn():
- print "new content:", new_content
- print "os.path.getmtime() after writing new content:", os.path.getmtime('main.c')
+ print("new content:", new_content)
+ print("os.path.getmtime() after writing new content:", os.path.getmtime('main.c'))
# Add teardown hook to restore the file to the original content.
self.addTearDownHook(restore_file)
Modified: lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py (original)
+++ lldb/trunk/test/terminal/TestSTTYBeforeAndAfter.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that 'stty -a' displays the same output before and after running the lldb command.
"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -89,30 +91,30 @@ class CommandLineCompletionTestCase(Test
with open('child_send1.txt', 'r') as fs:
if self.TraceOn():
- print "\n\nContents of child_send1.txt:"
- print fs.read()
+ print("\n\nContents of child_send1.txt:")
+ print(fs.read())
with open('child_read1.txt', 'r') as fr:
from_child1 = fr.read()
if self.TraceOn():
- print "\n\nContents of child_read1.txt:"
- print from_child1
+ print("\n\nContents of child_read1.txt:")
+ print(from_child1)
with open('child_send2.txt', 'r') as fs:
if self.TraceOn():
- print "\n\nContents of child_send2.txt:"
- print fs.read()
+ print("\n\nContents of child_send2.txt:")
+ print(fs.read())
with open('child_read2.txt', 'r') as fr:
from_child2 = fr.read()
if self.TraceOn():
- print "\n\nContents of child_read2.txt:"
- print from_child2
+ print("\n\nContents of child_read2.txt:")
+ print(from_child2)
stty_output1_lines = from_child1.splitlines()
stty_output2_lines = from_child2.splitlines()
zipped = zip(stty_output1_lines, stty_output2_lines)
for tuple in zipped:
if self.TraceOn():
- print "tuple->%s" % str(tuple)
+ print("tuple->%s" % str(tuple))
# Every line should compare equal until the first blank line.
if len(tuple[0]) == 0:
break
Modified: lldb/trunk/test/test_results.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/test_results.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/test_results.py (original)
+++ lldb/trunk/test/test_results.py Fri Oct 23 12:04:29 2015
@@ -8,6 +8,8 @@ Provides classes used by the test result
within the LLDB test suite.
"""
+from __future__ import print_function
+
import lldb_shared
import argparse
Modified: lldb/trunk/test/test_runner/test/inferior.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/test_runner/test/inferior.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/test_runner/test/inferior.py (original)
+++ lldb/trunk/test/test_runner/test/inferior.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,8 @@
#!/usr/bin/env python
"""Inferior program used by process control tests."""
+
+from __future__ import print_function
+
import argparse
import datetime
import signal
@@ -67,7 +70,7 @@ def handle_ignore_signals(options, signa
for signum in signals:
if options.verbose:
- print "disabling signum {}".format(signum)
+ print("disabling signum {}".format(signum))
signal.signal(signum, signal.SIG_IGN)
@@ -88,7 +91,7 @@ def handle_sleep(options, sleep_seconds)
end_time = datetime.datetime.now() + datetime.timedelta(0, sleep_seconds)
if options.verbose:
- print "sleep end time: {}".format(end_time)
+ print("sleep end time: {}".format(end_time))
# Do sleep in a loop: signals can interrupt.
while datetime.datetime.now() < end_time:
Modified: lldb/trunk/test/tools/lldb-mi/TestMiExit.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/TestMiExit.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/TestMiExit.py (original)
+++ lldb/trunk/test/tools/lldb-mi/TestMiExit.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that the lldb-mi driver exits properly.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/TestMiFile.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/TestMiFile.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/TestMiFile.py (original)
+++ lldb/trunk/test/tools/lldb-mi/TestMiFile.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi -file-xxx commands.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/TestMiGdbSetShow.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/TestMiGdbSetShow.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/TestMiGdbSetShow.py (original)
+++ lldb/trunk/test/tools/lldb-mi/TestMiGdbSetShow.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi -gdb-set and -gdb-show commands.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/tools/lldb-mi/TestMiLibraryLoaded.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/TestMiLibraryLoaded.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/TestMiLibraryLoaded.py (original)
+++ lldb/trunk/test/tools/lldb-mi/TestMiLibraryLoaded.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi =library-loaded notifications.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/TestMiPrompt.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/TestMiPrompt.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/TestMiPrompt.py (original)
+++ lldb/trunk/test/tools/lldb-mi/TestMiPrompt.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that the lldb-mi driver prints prompt properly.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/breakpoint/TestMiBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/breakpoint/TestMiBreak.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/breakpoint/TestMiBreak.py (original)
+++ lldb/trunk/test/tools/lldb-mi/breakpoint/TestMiBreak.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi -break-xxx commands.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/tools/lldb-mi/control/TestMiExec.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/control/TestMiExec.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/control/TestMiExec.py (original)
+++ lldb/trunk/test/tools/lldb-mi/control/TestMiExec.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi -exec-xxx commands.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/data/TestMiData.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/data/TestMiData.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/data/TestMiData.py (original)
+++ lldb/trunk/test/tools/lldb-mi/data/TestMiData.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi -data-xxx commands.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/tools/lldb-mi/interpreter/TestMiCliSupport.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/interpreter/TestMiCliSupport.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/interpreter/TestMiCliSupport.py (original)
+++ lldb/trunk/test/tools/lldb-mi/interpreter/TestMiCliSupport.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi can interpret CLI commands directly.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/interpreter/TestMiInterpreterExec.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/interpreter/TestMiInterpreterExec.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/interpreter/TestMiInterpreterExec.py (original)
+++ lldb/trunk/test/tools/lldb-mi/interpreter/TestMiInterpreterExec.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi -interpreter-exec command.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py (original)
+++ lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Base class for lldb-mi test cases.
"""
+from __future__ import print_function
+
import lldb_shared
from lldbtest import *
@@ -24,9 +26,9 @@ class MiTestCaseBase(Base):
def tearDown(self):
if self.TraceOn():
- print "\n\nContents of %s:" % self.mylog
+ print("\n\nContents of %s:" % self.mylog)
try:
- print open(self.mylog, "r").read()
+ print(open(self.mylog, "r").read())
except IOError:
pass
Base.tearDown(self)
Modified: lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py (original)
+++ lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that the lldb-mi handles signals properly.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/stack/TestMiStack.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/stack/TestMiStack.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/stack/TestMiStack.py (original)
+++ lldb/trunk/test/tools/lldb-mi/stack/TestMiStack.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi -stack-xxx commands.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/startup_options/TestMiStartupOptions.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/startup_options/TestMiStartupOptions.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/startup_options/TestMiStartupOptions.py (original)
+++ lldb/trunk/test/tools/lldb-mi/startup_options/TestMiStartupOptions.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi startup options.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/symbol/TestMiSymbol.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/symbol/TestMiSymbol.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/symbol/TestMiSymbol.py (original)
+++ lldb/trunk/test/tools/lldb-mi/symbol/TestMiSymbol.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi -symbol-xxx commands.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/syntax/TestMiSyntax.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/syntax/TestMiSyntax.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/syntax/TestMiSyntax.py (original)
+++ lldb/trunk/test/tools/lldb-mi/syntax/TestMiSyntax.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that the lldb-mi driver understands MI command syntax.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/target/TestMiTarget.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/target/TestMiTarget.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/target/TestMiTarget.py (original)
+++ lldb/trunk/test/tools/lldb-mi/target/TestMiTarget.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi -target-xxx commands.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py (original)
+++ lldb/trunk/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py Fri Oct 23 12:04:29 2015
@@ -3,6 +3,8 @@
Test lldb-mi -gdb-set and -gdb-show commands for 'print option-name'.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py (original)
+++ lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test lldb-mi -var-xxx commands.
"""
+from __future__ import print_function
+
import lldb_shared
import lldbmi_testcase
Modified: lldb/trunk/test/tools/lldb-server/TestGDBRemoteMemoryRead.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGDBRemoteMemoryRead.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGDBRemoteMemoryRead.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGDBRemoteMemoryRead.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Tests the binary ($x) and hex ($m) memory read packets of the remote stub
"""
+from __future__ import print_function
+
import lldb_shared
import os
Modified: lldb/trunk/test/tools/lldb-server/TestGdbRemoteAttach.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGdbRemoteAttach.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGdbRemoteAttach.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGdbRemoteAttach.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
Modified: lldb/trunk/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
@@ -99,7 +101,7 @@ class TestGdbRemoteAuxvSupport(gdbremote
# Ensure auxv data is a multiple of 2*word_size (there should be two unsigned long fields per auxv entry).
self.assertEquals(len(auxv_data) % (2*word_size), 0)
- # print "auxv contains {} entries".format(len(auxv_data) / (2*word_size))
+ # print("auxv contains {} entries".format(len(auxv_data) / (2*word_size)))
@debugserver_test
def test_auxv_data_is_correct_size_debugserver(self):
@@ -137,7 +139,7 @@ class TestGdbRemoteAuxvSupport(gdbremote
for auxv_key in auxv_dict:
self.assertTrue(auxv_key >= 1)
self.assertTrue(auxv_key <= 1000)
- # print "auxv dict: {}".format(auxv_dict)
+ # print("auxv dict: {}".format(auxv_dict))
@debugserver_test
def test_auxv_keys_look_valid_debugserver(self):
Modified: lldb/trunk/test/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
@@ -46,7 +48,7 @@ class TestGdbRemoteExpeditedRegisters(gd
# Ensure the expedited registers contained it.
self.assertTrue(reg_info["lldb_register_index"] in expedited_registers)
- # print "{} reg_info:{}".format(generic_register_name, reg_info)
+ # print("{} reg_info:{}".format(generic_register_name, reg_info))
def stop_notification_contains_any_registers(self):
# Generate a stop reply, parse out expedited registers from stop notification.
Modified: lldb/trunk/test/tools/lldb-server/TestGdbRemoteKill.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGdbRemoteKill.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGdbRemoteKill.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGdbRemoteKill.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
Modified: lldb/trunk/test/tools/lldb-server/TestGdbRemoteProcessInfo.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGdbRemoteProcessInfo.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGdbRemoteProcessInfo.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGdbRemoteProcessInfo.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
Modified: lldb/trunk/test/tools/lldb-server/TestGdbRemoteRegisterState.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGdbRemoteRegisterState.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGdbRemoteRegisterState.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGdbRemoteRegisterState.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
@@ -50,7 +52,7 @@ class TestGdbRemoteRegisterState(gdbremo
self.assertIsNotNone(threads)
thread_id = threads[0]
self.assertIsNotNone(thread_id)
- # print "Running on thread: 0x{:x}".format(thread_id)
+ # print("Running on thread: 0x{:x}".format(thread_id))
else:
thread_id = None
@@ -64,19 +66,19 @@ class TestGdbRemoteRegisterState(gdbremo
(success, state_id) = self.parse_QSaveRegisterState_response(context)
self.assertTrue(success)
self.assertIsNotNone(state_id)
- # print "saved register state id: {}".format(state_id)
+ # print("saved register state id: {}".format(state_id))
# Remember initial register values.
initial_reg_values = self.read_register_values(gpr_reg_infos, endian, thread_id=thread_id)
- # print "initial_reg_values: {}".format(initial_reg_values)
+ # print("initial_reg_values: {}".format(initial_reg_values))
# Flip gpr register values.
(successful_writes, failed_writes) = self.flip_all_bits_in_each_register_value(gpr_reg_infos, endian, thread_id=thread_id)
- # print "successful writes: {}, failed writes: {}".format(successful_writes, failed_writes)
+ # print("successful writes: {}, failed writes: {}".format(successful_writes, failed_writes))
self.assertTrue(successful_writes > 0)
flipped_reg_values = self.read_register_values(gpr_reg_infos, endian, thread_id=thread_id)
- # print "flipped_reg_values: {}".format(flipped_reg_values)
+ # print("flipped_reg_values: {}".format(flipped_reg_values))
# Restore register values.
self.reset_test_sequence()
@@ -87,7 +89,7 @@ class TestGdbRemoteRegisterState(gdbremo
# Verify registers match initial register values.
final_reg_values = self.read_register_values(gpr_reg_infos, endian, thread_id=thread_id)
- # print "final_reg_values: {}".format(final_reg_values)
+ # print("final_reg_values: {}".format(final_reg_values))
self.assertIsNotNone(final_reg_values)
self.assertEquals(final_reg_values, initial_reg_values)
Modified: lldb/trunk/test/tools/lldb-server/TestGdbRemoteSingleStep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGdbRemoteSingleStep.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGdbRemoteSingleStep.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGdbRemoteSingleStep.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
Modified: lldb/trunk/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
Modified: lldb/trunk/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import sys
Modified: lldb/trunk/test/tools/lldb-server/TestGdbRemote_vCont.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestGdbRemote_vCont.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestGdbRemote_vCont.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestGdbRemote_vCont.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
Modified: lldb/trunk/test/tools/lldb-server/TestLldbGdbServer.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/TestLldbGdbServer.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/TestLldbGdbServer.py (original)
+++ lldb/trunk/test/tools/lldb-server/TestLldbGdbServer.py Fri Oct 23 12:04:29 2015
@@ -10,6 +10,8 @@ gdb remote packet functional areas. For
the initial set of tests implemented.
"""
+from __future__ import print_function
+
import lldb_shared
import unittest2
@@ -1343,7 +1345,7 @@ class LldbGdbServerTestCase(gdbremote_te
# Write flipped bit pattern of existing value to each register.
(successful_writes, failed_writes) = self.flip_all_bits_in_each_register_value(gpr_reg_infos, endian)
- # print "successful writes: {}, failed writes: {}".format(successful_writes, failed_writes)
+ # print("successful writes: {}, failed writes: {}".format(successful_writes, failed_writes))
self.assertTrue(successful_writes > 0)
# Note: as of this moment, a hefty number of the GPR writes are failing with E32 (everything except rax-rdx, rdi, rsi, rbp).
Modified: lldb/trunk/test/tools/lldb-server/commandline/TestStubReverseConnect.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/commandline/TestStubReverseConnect.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/commandline/TestStubReverseConnect.py (original)
+++ lldb/trunk/test/tools/lldb-server/commandline/TestStubReverseConnect.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import gdbremote_testcase
import lldbgdbserverutils
import re
@@ -63,7 +65,7 @@ class TestStubReverseConnect(gdbremote_t
(stub_socket, address) = self.listener_socket.accept()
self.assertIsNotNone(stub_socket)
self.assertIsNotNone(address)
- print "connected to stub {} on {}".format(address, stub_socket.getsockname())
+ print("connected to stub {} on {}".format(address, stub_socket.getsockname()))
# Verify we can do the handshake. If that works, we'll call it good.
self.do_handshake(stub_socket, timeout_seconds=self._DEFAULT_TIMEOUT)
Modified: lldb/trunk/test/tools/lldb-server/commandline/TestStubSetSID.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/commandline/TestStubSetSID.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/commandline/TestStubSetSID.py (original)
+++ lldb/trunk/test/tools/lldb-server/commandline/TestStubSetSID.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
Modified: lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py (original)
+++ lldb/trunk/test/tools/lldb-server/gdbremote_testcase.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Base class for gdb-remote test cases.
"""
+from __future__ import print_function
+
import lldb_shared
import errno
@@ -98,21 +100,21 @@ class GdbRemoteTestCaseBase(TestBase):
try:
named_pipe.close()
except:
- print "failed to close named pipe"
+ print("failed to close named pipe")
None
# Delete the pipe.
try:
os.remove(named_pipe_path)
except:
- print "failed to delete named pipe: {}".format(named_pipe_path)
+ print("failed to delete named pipe: {}".format(named_pipe_path))
None
# Delete the temp directory.
try:
os.rmdir(temp_dir)
except:
- print "failed to delete temp dir: {}, directory contents: '{}'".format(temp_dir, os.listdir(temp_dir))
+ print("failed to delete temp dir: {}, directory contents: '{}'".format(temp_dir, os.listdir(temp_dir)))
None
# Add the shutdown hook to clean up the named pipe.
@@ -1005,7 +1007,7 @@ class GdbRemoteTestCaseBase(TestBase):
# Flip the value by xoring with all 1s
all_one_bits_raw = "ff" * (int(reg_info["bitsize"]) / 8)
flipped_bits_int = initial_reg_value ^ int(all_one_bits_raw, 16)
- # print "reg (index={}, name={}): val={}, flipped bits (int={}, hex={:x})".format(reg_index, reg_info["name"], initial_reg_value, flipped_bits_int, flipped_bits_int)
+ # print("reg (index={}, name={}): val={}, flipped bits (int={}, hex={:x})".format(reg_index, reg_info["name"], initial_reg_value, flipped_bits_int, flipped_bits_int))
# Handle thread suffix for P.
if thread_id:
@@ -1031,7 +1033,7 @@ class GdbRemoteTestCaseBase(TestBase):
successful_writes += 1
else:
failed_writes += 1
- # print "reg (index={}, name={}) write FAILED (error: {})".format(reg_index, reg_info["name"], P_response)
+ # print("reg (index={}, name={}) write FAILED (error: {})".format(reg_index, reg_info["name"], P_response))
# Read back the register value, ensure it matches the flipped value.
if P_response == "OK":
@@ -1049,7 +1051,7 @@ class GdbRemoteTestCaseBase(TestBase):
if verify_bits != flipped_bits_int:
# Some registers, like mxcsrmask and others, will permute what's written. Adjust succeed/fail counts.
- # print "reg (index={}, name={}): read verify FAILED: wrote {:x}, verify read back {:x}".format(reg_index, reg_info["name"], flipped_bits_int, verify_bits)
+ # print("reg (index={}, name={}): read verify FAILED: wrote {:x}, verify read back {:x}".format(reg_index, reg_info["name"], flipped_bits_int, verify_bits))
successful_writes -= 1
failed_writes +=1
@@ -1134,7 +1136,7 @@ class GdbRemoteTestCaseBase(TestBase):
# Build the packet for the single step instruction. We replace {thread}, if present, with the thread_id.
step_packet = "read packet: ${}#00".format(re.sub(r"{thread}", "{:x}".format(thread_id), step_instruction))
- # print "\nstep_packet created: {}\n".format(step_packet)
+ # print("\nstep_packet created: {}\n".format(step_packet))
# Single step.
self.reset_test_sequence()
Modified: lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py (original)
+++ lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
Modified: lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py (original)
+++ lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import gdbremote_testcase
Modified: lldb/trunk/test/tools/lldb-server/lldbgdbserverutils.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/lldbgdbserverutils.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/lldbgdbserverutils.py (original)
+++ lldb/trunk/test/tools/lldb-server/lldbgdbserverutils.py Fri Oct 23 12:04:29 2015
@@ -1,6 +1,8 @@
"""Module for supporting unit testing of the lldb-server debug monitor exe.
"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -701,12 +703,12 @@ class MatchRemoteOutputEntry(GdbRemoteEn
# If we don't match, wait to try again after next $O content, or time out.
if not match:
- # print "re pattern \"{}\" did not match against \"{}\"".format(self._regex.pattern, accumulated_output)
+ # print("re pattern \"{}\" did not match against \"{}\"".format(self._regex.pattern, accumulated_output))
return context
# We do match.
self._matched = True
- # print "re pattern \"{}\" matched against \"{}\"".format(self._regex.pattern, accumulated_output)
+ # print("re pattern \"{}\" matched against \"{}\"".format(self._regex.pattern, accumulated_output))
# Collect up any captures into the context.
if self._capture:
@@ -835,6 +837,6 @@ def process_is_running(pid, unknown_valu
if __name__ == '__main__':
EXE_PATH = get_lldb_server_exe()
if EXE_PATH:
- print "lldb-server path detected: {}".format(EXE_PATH)
+ print("lldb-server path detected: {}".format(EXE_PATH))
else:
- print "lldb-server could not be found"
+ print("lldb-server could not be found")
Modified: lldb/trunk/test/tools/lldb-server/socket_packet_pump.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/socket_packet_pump.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/socket_packet_pump.py (original)
+++ lldb/trunk/test/tools/lldb-server/socket_packet_pump.py Fri Oct 23 12:04:29 2015
@@ -1,4 +1,6 @@
+from __future__ import print_function
+
import lldb_shared
import re
@@ -21,8 +23,8 @@ def _handle_output_packet_string(packet_
def _dump_queue(the_queue):
while not the_queue.empty():
- print codecs.encode(the_queue.get(True), "string_escape")
- print "\n"
+ print(codecs.encode(the_queue.get(True), "string_escape"))
+ print("\n")
class SocketPacketPump(object):
"""A threaded packet reader that partitions packets into two streams.
@@ -67,15 +69,15 @@ class SocketPacketPump(object):
# Warn if there is any content left in any of the queues.
# That would represent unmatched packets.
if not self.output_queue().empty():
- print "warning: output queue entries still exist:"
+ print("warning: output queue entries still exist:")
_dump_queue(self.output_queue())
- print "from here:"
+ print("from here:")
traceback.print_stack()
if not self.packet_queue().empty():
- print "warning: packet queue entries still exist:"
+ print("warning: packet queue entries still exist:")
_dump_queue(self.packet_queue())
- print "from here:"
+ print("from here:")
traceback.print_stack()
def start_pump_thread(self):
Modified: lldb/trunk/test/tools/lldb-server/test/test_lldbgdbserverutils.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/test/test_lldbgdbserverutils.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/test/test_lldbgdbserverutils.py (original)
+++ lldb/trunk/test/tools/lldb-server/test/test_lldbgdbserverutils.py Fri Oct 23 12:04:29 2015
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import lldb_shared
import unittest2
Modified: lldb/trunk/test/types/AbstractBase.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/AbstractBase.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/types/AbstractBase.py (original)
+++ lldb/trunk/test/types/AbstractBase.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Abstract base class of basic types provides a generic type tester method.
"""
+from __future__ import print_function
+
import os, time
import re
import lldb
@@ -33,7 +35,7 @@ class GenericTester(TestBase):
def tearDown(self):
"""Cleanup the test byproducts."""
- #print "Removing golden-output.txt..."
+ #print("Removing golden-output.txt...")
if os.path.exists(self.golden_filename):
os.remove(self.golden_filename)
TestBase.tearDown(self)
@@ -117,7 +119,7 @@ class GenericTester(TestBase):
if match:
var, val = match.group(1), match.group(2)
gl.append((var, val))
- #print "golden list:", gl
+ #print("golden list:", gl)
# This test uses a #include of "basic_type.cpp" so we need to enable
# always setting inlined breakpoints.
@@ -201,7 +203,7 @@ class GenericTester(TestBase):
if match:
var, val = match.group(1), match.group(2)
gl.append((var, val))
- #print "golden list:", gl
+ #print("golden list:", gl)
# This test uses a #include of "basic_type.cpp" so we need to enable
# always setting inlined breakpoints.
Modified: lldb/trunk/test/types/HideTestFailures.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/HideTestFailures.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/types/HideTestFailures.py (original)
+++ lldb/trunk/test/types/HideTestFailures.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that variables of integer basic types are displayed correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import AbstractBase
Modified: lldb/trunk/test/types/TestFloatTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/TestFloatTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/types/TestFloatTypes.py (original)
+++ lldb/trunk/test/types/TestFloatTypes.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that variables of floating point types are displayed correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import AbstractBase
Modified: lldb/trunk/test/types/TestFloatTypesExpr.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/TestFloatTypesExpr.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/types/TestFloatTypesExpr.py (original)
+++ lldb/trunk/test/types/TestFloatTypesExpr.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that variable expressions of floating point types are evaluated correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import AbstractBase
Modified: lldb/trunk/test/types/TestIntegerTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/TestIntegerTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/types/TestIntegerTypes.py (original)
+++ lldb/trunk/test/types/TestIntegerTypes.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that variables of integer basic types are displayed correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import AbstractBase
Modified: lldb/trunk/test/types/TestIntegerTypesExpr.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/TestIntegerTypesExpr.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/types/TestIntegerTypesExpr.py (original)
+++ lldb/trunk/test/types/TestIntegerTypesExpr.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that variable expressions of integer basic types are evaluated correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import AbstractBase
Modified: lldb/trunk/test/types/TestRecursiveTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/TestRecursiveTypes.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/types/TestRecursiveTypes.py (original)
+++ lldb/trunk/test/types/TestRecursiveTypes.py Fri Oct 23 12:04:29 2015
@@ -2,6 +2,8 @@
Test that recursive types are handled correctly.
"""
+from __future__ import print_function
+
import lldb_shared
import lldb
Modified: lldb/trunk/test/warnings/uuid/TestAddDsymCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/warnings/uuid/TestAddDsymCommand.py?rev=251121&r1=251120&r2=251121&view=diff
==============================================================================
--- lldb/trunk/test/warnings/uuid/TestAddDsymCommand.py (original)
+++ lldb/trunk/test/warnings/uuid/TestAddDsymCommand.py Fri Oct 23 12:04:29 2015
@@ -1,5 +1,7 @@
"""Test that the 'add-dsym', aka 'target symbols add', command informs the user about success or failure."""
+from __future__ import print_function
+
import lldb_shared
import os, time
More information about the lldb-commits
mailing list