[Lldb-commits] [PATCH] D119616: [lldb] Replace asserts on .Success() with assertSuccess()

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 11 21:24:27 PST 2022


kastiglione created this revision.
kastiglione added a reviewer: jingham.
Herald added a subscriber: wenlei.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Replace forms of `assertTrue(x.Success())` with `assertSuccess(x)`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119616

Files:
  lldb/test/API/commands/expression/context-object-objc/TestContextObjectObjc.py
  lldb/test/API/commands/platform/basic/TestPlatformPython.py
  lldb/test/API/commands/watchpoints/multiple_hits/TestMultipleHits.py
  lldb/test/API/commands/watchpoints/step_over_watchpoint/TestStepOverWatchpoint.py
  lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py
  lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py
  lldb/test/API/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py
  lldb/test/API/functionalities/breakpoint/serialize/TestBreakpointSerialization.py
  lldb/test/API/functionalities/dlopen_other_executable/TestDlopenOtherExecutable.py
  lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py
  lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py
  lldb/test/API/functionalities/gdb_remote_client/TestJLink6Armv7RegisterDefinition.py
  lldb/test/API/functionalities/gdb_remote_client/TestMemoryRegionDirtyPages.py
  lldb/test/API/functionalities/launch_stop_at_entry/TestStopAtEntry.py
  lldb/test/API/functionalities/load_using_paths/TestLoadUsingPaths.py
  lldb/test/API/functionalities/paths/TestPaths.py
  lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
  lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py
  lldb/test/API/functionalities/postmortem/minidump/TestMiniDump.py
  lldb/test/API/functionalities/process_crash_info/TestProcessCrashInfo.py
  lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py
  lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
  lldb/test/API/functionalities/return-value/TestReturnValue.py
  lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
  lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py
  lldb/test/API/functionalities/step_scripted/TestStepScripted.py
  lldb/test/API/functionalities/thread/exit_during_expression/TestExitDuringExpression.py
  lldb/test/API/functionalities/thread/state_after_expression/TestStateAfterExpression.py
  lldb/test/API/functionalities/var_path/TestVarPath.py
  lldb/test/API/lang/c/local_types/TestUseClosestType.py
  lldb/test/API/lang/cpp/incomplete-types/TestCppIncompleteTypes.py
  lldb/test/API/lang/cpp/trivial_abi/TestTrivialABI.py
  lldb/test/API/lang/cpp/type_lookup/TestCppTypeLookup.py
  lldb/test/API/lang/objc/blocks/TestObjCIvarsInBlocks.py
  lldb/test/API/lang/objc/global_ptrs/TestGlobalObjects.py
  lldb/test/API/lang/objc/objc-checker/TestObjCCheckers.py
  lldb/test/API/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py
  lldb/test/API/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py
  lldb/test/API/lang/objc/objc-property/TestObjCProperty.py
  lldb/test/API/linux/aarch64/unwind_signal/TestUnwindSignal.py
  lldb/test/API/macosx/function-starts/TestFunctionStarts.py
  lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py
  lldb/test/API/macosx/thread_suspend/TestInternalThreadSuspension.py
  lldb/test/API/macosx/universal/TestUniversal.py
  lldb/test/API/python_api/debugger/TestDebuggerAPI.py
  lldb/test/API/python_api/file_handle/TestFileHandle.py
  lldb/test/API/python_api/process/read-mem-cstring/TestReadMemCString.py
  lldb/test/API/python_api/sbdata/TestSBData.py
  lldb/test/API/python_api/sbmodule/TestSBModule.py
  lldb/test/API/python_api/sbplatform/TestSBPlatform.py
  lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py
  lldb/test/API/python_api/target/TestTargetAPI.py
  lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py
  lldb/test/API/sample_test/TestSampleTest.py
  lldb/test/API/sample_test/main.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119616.408146.patch
Type: text/x-patch
Size: 72293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220212/3d689932/attachment-0001.bin>


More information about the lldb-commits mailing list