From: Ilya Biryukov Date: Tue, 11 Jun 2019 09:52:30 +0000 (+0000) Subject: [Frontend] Avoid creating auxilary files during a unit test. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfc7cb3fe8e163901c6a38e7b673888eac21797b;p=clang [Frontend] Avoid creating auxilary files during a unit test. NFC A test added in r363009 logs diagnostics into a file inside current working directory. This breaks when the directory is not writable. This looks like a debugging output in the first place, the test passes without it anyway. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363041 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Frontend/CompilerInstanceTest.cpp b/unittests/Frontend/CompilerInstanceTest.cpp index 3ef13d32ca..3b3dc527df 100644 --- a/unittests/Frontend/CompilerInstanceTest.cpp +++ b/unittests/Frontend/CompilerInstanceTest.cpp @@ -73,7 +73,6 @@ TEST(CompilerInstance, DefaultVFSOverlayFromInvocation) { TEST(CompilerInstance, AllowDiagnosticLogWithUnownedDiagnosticConsumer) { auto DiagOpts = new DiagnosticOptions(); - DiagOpts->DiagnosticLogFile = "log.diags"; // Create the diagnostic engine with unowned consumer. std::string DiagnosticOutput;