llvm/unittests/Support
Reid Kleckner 6a701169dc Fix a real temp file leak in FileOutputBuffer
If we failed to commit the buffer but did not die to a signal, the temp
file would remain on disk on Windows. Having an open file mapping and
file handle prevents the file from being deleted. I am choosing not to
add an assertion of success on the temp file removal, since virus
scanners and other environmental things can often cause removal to fail
in real world tools.

Also fix more temp file leaks in unit tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280445 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-02 01:10:53 +00:00
..
AlignOfTest.cpp
AllocatorTest.cpp
ArrayRecyclerTest.cpp
BlockFrequencyTest.cpp
BranchProbabilityTest.cpp
Casting.cpp
CMakeLists.txt Move unittests/Support/IteratorTest.cpp to unittests/ADT/ 2016-08-20 14:58:31 +00:00
CommandLineTest.cpp
CompressionTest.cpp
ConvertUTFTest.cpp
DataExtractorTest.cpp
DwarfTest.cpp
EndianStreamTest.cpp
EndianTest.cpp
ErrorOrTest.cpp
ErrorTest.cpp
FileOutputBufferTest.cpp Fix a real temp file leak in FileOutputBuffer 2016-09-02 01:10:53 +00:00
formatted_raw_ostream_test.cpp
LEB128Test.cpp
LineIteratorTest.cpp
LockFileManagerTest.cpp
ManagedStatic.cpp
MathExtrasTest.cpp
MD5Test.cpp
MemoryBufferTest.cpp Try to fix some temp file leaks in SupportTests, PR18335 2016-09-02 00:51:34 +00:00
MemoryTest.cpp
Path.cpp Fix a real temp file leak in FileOutputBuffer 2016-09-02 01:10:53 +00:00
ProcessTest.cpp
ProgramTest.cpp
raw_ostream_test.cpp
raw_pwrite_stream_test.cpp Fix a real temp file leak in FileOutputBuffer 2016-09-02 01:10:53 +00:00
raw_sha1_ostream_test.cpp
RegexTest.cpp [LLVM/Support] - Create no-arguments constructor for llvm::Regex 2016-09-01 08:00:28 +00:00
ReplaceFileTest.cpp
ScaledNumberTest.cpp
SourceMgrTest.cpp
SpecialCaseListTest.cpp Try to fix some temp file leaks in SupportTests, PR18335 2016-09-02 00:51:34 +00:00
StreamingMemoryObjectTest.cpp
StringPool.cpp
SwapByteOrderTest.cpp
TargetParserTest.cpp
ThreadLocalTest.cpp
ThreadPool.cpp Use the range variant of find instead of unpacking begin/end 2016-08-11 22:21:41 +00:00
TimerTest.cpp
TimeValueTest.cpp
TrailingObjectsTest.cpp
TypeNameTest.cpp
UnicodeTest.cpp
YAMLIOTest.cpp
YAMLParserTest.cpp