[all-commits] [llvm/llvm-project] 025f6c: [lldb] Modernize TestBitfields

Raphael Isemann via All-commits all-commits at lists.llvm.org
Mon Oct 25 04:12:52 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 025f6ca7c469b6412b58b69fab17092548d5f6c1
      https://github.com/llvm/llvm-project/commit/025f6ca7c469b6412b58b69fab17092548d5f6c1
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M lldb/test/API/lang/c/bitfields/TestBitfields.py
    M lldb/test/API/lang/c/bitfields/main.c

  Log Message:
  -----------
  [lldb] Modernize TestBitfields

This just does the usual modernizations such as using new test functions where
possible, clang-formatting the source, avoiding manual process setup,
assert improvements (` assertTrue(a == b) -> assertEqual(a, b)`).

This doesn't add any new test cases but removes some dependence on unrelated
features where possible (e.g., structs declared in functions, using the standard
library to printf stuff or initialize objects).




More information about the All-commits mailing list