aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2019-10-22 08:44:34 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2019-10-22 08:44:34 +0000
commit65acf43270ea2894dffa0d0b292b92402f80c8cb (patch)
tree166e8bf14a8712529ff52702f6c1f68bd9e0b1a3
parent3f4b39141dfb8d13649da48635393e35e03054f3 (diff)
downloadclang-master.tar.gz
[FrontendTests] Try again to make test not write an output fileHEADmaster
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.cpp2
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(