Pavel Labath 292178e104 Last batch of test-tree cleaning changes
- postmortem tests: make sure the core files are created in the build
  folder
- TestSourceManager: copy the .c file into the build dir before
  modifying it
- TestLogging: create log files in the build folder

After these changes I get a clean test run (on linux) even if I set the
source tree to be read only. It's possible some of the skipped/xfailed
tests are still creating files in the source tree, but at the moment, I
don't have plans to go hunting for those.

llvm-svn: 328106
2018-03-21 15:29:32 +00:00

14 lines
205 B
Makefile

LEVEL = ../make
C_SOURCES := main-copy.c
include $(LEVEL)/Makefile.rules
# Copy file into the build folder to enable the test to modify it.
main-copy.c: main.c
cp -f $< $@
clean::
$(RM) main-copy.c