diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2019-06-12 20:35:44 +0000 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2019-06-12 20:35:44 +0000 |
| commit | 514cfdb18dbbad525e9f3d96ac98e1e8903aa6e2 (patch) | |
| tree | 390bf8ce78502e121fad6a828bd1885df25d4f32 | |
| parent | 565f1e2298ce92882c12fbeff5c53a411ead1a03 (diff) | |
| download | bcm5719-llvm-514cfdb18dbbad525e9f3d96ac98e1e8903aa6e2.tar.gz bcm5719-llvm-514cfdb18dbbad525e9f3d96ac98e1e8903aa6e2.zip | |
[test] Reinstate the assignment to the diagnostic log in the unittest
from r363009
The diagnostic log is now set to "-" which forces it to use STDERR
instead of the filesystem. A new comment is added to explain why
the assignment is needed in the test.
llvm-svn: 363199
| -rw-r--r-- | clang/unittests/Frontend/CompilerInstanceTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Frontend/CompilerInstanceTest.cpp b/clang/unittests/Frontend/CompilerInstanceTest.cpp index 3b3dc527df5..4935853f138 100644 --- a/clang/unittests/Frontend/CompilerInstanceTest.cpp +++ b/clang/unittests/Frontend/CompilerInstanceTest.cpp @@ -73,6 +73,10 @@ TEST(CompilerInstance, DefaultVFSOverlayFromInvocation) { TEST(CompilerInstance, AllowDiagnosticLogWithUnownedDiagnosticConsumer) { auto DiagOpts = new DiagnosticOptions(); + // Tell the diagnostics engine to emit the diagnostic log to STDERR. This + // ensures that a chained diagnostic consumer is created so that the test can + // exercise the unowned diagnostic consumer in a chained consumer. + DiagOpts->DiagnosticLogFile = "-"; // Create the diagnostic engine with unowned consumer. std::string DiagnosticOutput; |

