Skip to content

Commit 5942be0

Browse files
authored
[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.
1 parent 6e535a9 commit 5942be0

File tree

1 file changed

+1
-0
lines changed
  • lldb/test/API/commands/settings/use_source_cache

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ include Makefile.rules
66
# Copy file into the build folder to enable the test to modify it.
77
main-copy.cpp: main.cpp
88
cp -f $< $@
9+
chmod u+w $@

0 commit comments

Comments
 (0)