[Lldb-commits] [lldb] 5942be0 - [lldb][test] Fix TestUseSourceCache for readonly source trees (#113251)

via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 22 08:34:19 PDT 2024


Author: Jordan Rupprecht
Date: 2024-10-22T10:34:15-05:00
New Revision: 5942be03eadc8abd320e3dad1abcc4e87ce4171a

URL: https://github.com/llvm/llvm-project/commit/5942be03eadc8abd320e3dad1abcc4e87ce4171a
DIFF: https://github.com/llvm/llvm-project/commit/5942be03eadc8abd320e3dad1abcc4e87ce4171a.diff

LOG: [lldb][test] Fix TestUseSourceCache for readonly source trees (#113251)

TestUseSourceCache attempts to write to a build artifact copied from the
source tree, and asserts the write succeeded. If the source tree is read
only, the copy will also be read only, causing it to fail. When
producing the build artifact, ensure that it is writable.

Added: 
    

Modified: 
    lldb/test/API/commands/settings/use_source_cache/Makefile

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/commands/settings/use_source_cache/Makefile b/lldb/test/API/commands/settings/use_source_cache/Makefile
index 791cb7d868d87e..6c1c64fae074d1 100644
--- a/lldb/test/API/commands/settings/use_source_cache/Makefile
+++ b/lldb/test/API/commands/settings/use_source_cache/Makefile
@@ -6,3 +6,4 @@ include Makefile.rules
 # Copy file into the build folder to enable the test to modify it.
 main-copy.cpp: main.cpp
 	cp -f $< $@
+	chmod u+w $@


        


More information about the lldb-commits mailing list