hanchenye-llvm-project/lld/unittests
Rui Ueyama 951cfb6aae Fix potential test failures.
Windows does not allow opened files to be removed. This patch
fixes two types of errors.

 - Output file being the same as input file. Because LLD itself
   holds a file descriptor of the input file, it cannot create an
   output file with the same name as a new file.

 - Removing files before releasing MemoryBuffer objects.

These tests are not failing no because MemoryBuffer happens to
decide not to use mmap on these files. But we shouldn't rely on
that behavior.

llvm-svn: 280507
2016-09-02 17:19:28 +00:00
..
CoreTests Fix BUILD_SHARED_LIBS build. 2016-03-01 15:56:53 +00:00
DriverTests Merge DarwinLdDriver and Driver. 2016-03-02 19:08:05 +00:00
MachOTests Fix potential test failures. 2016-09-02 17:19:28 +00:00
CMakeLists.txt