]> granicus.if.org Git - clang/commitdiff
[Frontend] Avoid creating auxilary files during a unit test. NFC
authorIlya Biryukov <ibiryukov@google.com>
Tue, 11 Jun 2019 09:52:30 +0000 (09:52 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Tue, 11 Jun 2019 09:52:30 +0000 (09:52 +0000)
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

unittests/Frontend/CompilerInstanceTest.cpp

index 3ef13d32ca45cf7411ceaf8a18e25b8d3e5e07ac..3b3dc527df5c5b11ed47a43f9c8182a19ffbc184 100644 (file)
@@ -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;