diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-10-22 08:44:34 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-10-22 08:44:34 +0000 |
commit | 65acf43270ea2894dffa0d0b292b92402f80c8cb (patch) | |
tree | 166e8bf14a8712529ff52702f6c1f68bd9e0b1a3 | |
parent | 3f4b39141dfb8d13649da48635393e35e03054f3 (diff) | |
download | clang-65acf43270ea2894dffa0d0b292b92402f80c8cb.tar.gz |
Setting the output stream to nulls seems to work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375491 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | unittests/Frontend/OutputStreamTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/Frontend/OutputStreamTest.cpp b/unittests/Frontend/OutputStreamTest.cpp index 14537ecdc5..6a867bf053 100644 --- a/unittests/Frontend/OutputStreamTest.cpp +++ b/unittests/Frontend/OutputStreamTest.cpp @@ -58,6 +58,7 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamShared) { std::string VerboseBuffer; raw_string_ostream VerboseStream(VerboseBuffer); + Compiler.setOutputStream(std::make_unique<raw_null_ostream>()); Compiler.setInvocation(std::move(Invocation)); IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); Compiler.createDiagnostics( @@ -86,6 +87,7 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamOwned) { std::unique_ptr<raw_ostream> VerboseStream = std::make_unique<raw_string_ostream>(VerboseBuffer); + Compiler.setOutputStream(std::make_unique<raw_null_ostream>()); Compiler.setInvocation(std::move(Invocation)); IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); Compiler.createDiagnostics( |