[all-commits] [llvm/llvm-project] f8865a: [lldb] Fix tests to resolve symlinks when checking...

David Peixotto via All-commits all-commits at lists.llvm.org
Fri Mar 21 09:02:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f8865aa876a663a26d0b9ce5d26c9d6df6b9d18f
      https://github.com/llvm/llvm-project/commit/f8865aa876a663a26d0b9ce5d26c9d6df6b9d18f
  Author: David Peixotto <peix at meta.com>
  Date:   2025-03-21 (Fri, 21 Mar 2025)

  Changed paths:
    M lldb/test/API/commands/process/launch/TestProcessLaunch.py
    M lldb/test/API/source-manager/TestSourceManager.py

  Log Message:
  -----------
  [lldb] Fix tests to resolve symlinks when checking paths (#132053)

The inferior used in the process launch test prints out its working
directory using the `getcwd` function, which is not allowed to return
symbolic links in the path components. When testing against the output
from `getcwd` we should resolve the full path to match the expected
output.

The source manager test sets a breakpoint on a main-copy.c file that is
copied into the build output directory. The source manager resolves this
path to its real location. When testing the output from the source cache
we need to resolve the expected path in the test to remove symlinks.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list