[all-commits] [llvm/llvm-project] 619e2e: [lldb] Convert assertTrue(a == b) to assertEqual(a...

Dave Lee via All-commits all-commits at lists.llvm.org
Tue Feb 2 12:39:24 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 619e2e095fb1cd1e60b745cf1a10af9f67a4cd41
      https://github.com/llvm/llvm-project/commit/619e2e095fb1cd1e60b745cf1a10af9f67a4cd41
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M lldb/test/API/commands/register/register/register_command/TestRegisters.py
    M lldb/test/API/commands/watchpoints/watchpoint_events/TestWatchpointEvents.py
    M lldb/test/API/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
    M lldb/test/API/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py
    M lldb/test/API/functionalities/breakpoint/breakpoint_in_delayslot/TestAvoidBreakpointInDelaySlot.py
    M lldb/test/API/functionalities/breakpoint/serialize/TestBreakpointSerialization.py
    M lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py
    M lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/atomic/TestLibCxxAtomic.py
    M lldb/test/API/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py
    M lldb/test/API/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py
    M lldb/test/API/functionalities/exec/TestExec.py
    M lldb/test/API/functionalities/return-value/TestReturnValue.py
    M lldb/test/API/functionalities/tty/TestTerminal.py
    M lldb/test/API/functionalities/type_get_module/TestTypeGetModule.py
    M lldb/test/API/lang/c/bitfields/TestBitfields.py
    M lldb/test/API/lang/c/stepping/TestStepAndBreakpoints.py
    M lldb/test/API/lang/cpp/class_static/TestStaticVariables.py
    M lldb/test/API/lang/cpp/class_types/TestClassTypes.py
    M lldb/test/API/lang/cpp/dynamic-value/TestCppValueCast.py
    M lldb/test/API/lang/cpp/template/TestTemplateArgs.py
    M lldb/test/API/lang/objc/blocks/TestObjCIvarsInBlocks.py
    M lldb/test/API/lang/objc/foundation/TestObjCMethods.py
    M lldb/test/API/lang/objc/foundation/TestObjectDescriptionAPI.py
    M lldb/test/API/lang/objc/foundation/TestSymbolTable.py
    M lldb/test/API/lang/objc/objc-checker/TestObjCCheckers.py
    M lldb/test/API/lang/objc/objc-class-method/TestObjCClassMethod.py
    M lldb/test/API/python_api/disassemble-raw-data/TestDisassembleRawData.py
    M lldb/test/API/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py
    M lldb/test/API/python_api/event/TestEvents.py
    M lldb/test/API/python_api/frame/TestFrames.py
    M lldb/test/API/python_api/frame/inlines/TestInlinedFrame.py
    M lldb/test/API/python_api/function_symbol/TestDisasmAPI.py
    M lldb/test/API/python_api/function_symbol/TestSymbolAPI.py
    M lldb/test/API/python_api/lldbutil/frame/TestFrameUtils.py
    M lldb/test/API/python_api/lldbutil/iter/TestLLDBIterator.py
    M lldb/test/API/python_api/process/io/TestProcessIO.py
    M lldb/test/API/python_api/process/read-mem-cstring/TestReadMemCString.py
    M lldb/test/API/python_api/sbdata/TestSBData.py
    M lldb/test/API/python_api/symbol-context/TestSymbolContext.py
    M lldb/test/API/python_api/target/TestTargetAPI.py
    M lldb/test/API/python_api/thread/TestThreadAPI.py
    M lldb/test/API/python_api/type/TestTypeList.py
    M lldb/test/API/python_api/value/TestValueAPI.py
    M lldb/test/API/python_api/value/linked_list/TestValueAPILinkedList.py
    M lldb/test/API/python_api/watchpoint/TestSetWatchpoint.py
    M lldb/test/API/python_api/watchpoint/TestWatchpointIter.py
    M lldb/test/API/python_api/watchpoint/condition/TestWatchpointConditionAPI.py
    M lldb/test/API/python_api/watchpoint/watchlocation/TestSetWatchlocation.py
    M lldb/test/API/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py
    M lldb/test/API/terminal/TestSTTYBeforeAndAfter.py
    M lldb/test/API/tools/lldb-server/registers-target-xml-reading/TestGdbRemoteTargetXmlPacket.py
    M lldb/test/API/tools/lldb-vscode/breakpoint-events/TestVSCode_breakpointEvents.py
    M lldb/test/API/tools/lldb-vscode/console/TestVSCode_console.py
    M lldb/test/API/tools/lldb-vscode/module/TestVSCode_module.py
    M lldb/test/API/tools/lldb-vscode/variables/TestVSCode_variables.py

  Log Message:
  -----------
  [lldb] Convert assertTrue(a == b) to assertEqual(a, b)

Convert `assertTrue(a == b)` to `assertEqual(a, b)` to produce better failure messages.

These were mostly done via regex search & replace, with some manual fixes.

Differential Revision: https://reviews.llvm.org/D95813




More information about the All-commits mailing list