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.
10 lines
173 B
Makefile
10 lines
173 B
Makefile
CXX_SOURCES := main-copy.cpp
|
|
|
|
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 $@
|