[all-commits] [llvm/llvm-project] b03451: [Dexter] Use PurePath to compare paths in Dexter c...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Wed Jun 8 08:29:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b03451bb9acea1bea2ad02d280e5a5f0547b8a17
      https://github.com/llvm/llvm-project/commit/b03451bb9acea1bea2ad02d280e5a5f0547b8a17
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2022-06-08 (Wed, 08 Jun 2022)

  Changed paths:
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexDeclareAddress.py
    M cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
    M cross-project-tests/debuginfo-tests/dexter/dex/dextIR/ProgramState.py

  Log Message:
  -----------
  [Dexter] Use PurePath to compare paths in Dexter commands

Prior to this patch, when comparing the paths of source files in Dexter
commands, we would use os.samefile. This function performs actual file
operations and requires the files to exist on the current system; this
is suitable when running the test for the first time, but renders the
DextIR output files non-portable, and unusable if the source files no
longer exist in their original location.

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




More information about the All-commits mailing list