[all-commits] [llvm/llvm-project] 71b2ff: [test] Fix TestSourceManager when the source file ...

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Mon Nov 21 11:56:17 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 71b2ff79043aea637335b28299e978b678fd83bd
      https://github.com/llvm/llvm-project/commit/71b2ff79043aea637335b28299e978b678fd83bd
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2022-11-21 (Mon, 21 Nov 2022)

  Changed paths:
    M lldb/test/API/source-manager/TestSourceManager.py

  Log Message:
  -----------
  [test] Fix TestSourceManager when the source file is readonly.

This test copies main.c to main-copy.c and modifies main-copy.c while debugging, but main.c may have come from a readonly location, which means writing to main-copy.c will fail because permissions are preserved. Run the equivalent of "chmod u+w" before attempting to modify it.

This effect can be seen by attempting to run this test after running `chmod u-w lldb/test/API/source-manager/main.c`




More information about the All-commits mailing list