From ecc999101aadc8dc7d4af9fd88be10fe42674aa0 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 22 Oct 2019 08:44:34 +0000 Subject: [PATCH] [FrontendTests] Try again to make test not write an output file Setting the output stream to nulls seems to work. llvm-svn: 375491 --- clang/unittests/Frontend/OutputStreamTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/unittests/Frontend/OutputStreamTest.cpp b/clang/unittests/Frontend/OutputStreamTest.cpp index 14537ec..6a867bf 100644 --- a/clang/unittests/Frontend/OutputStreamTest.cpp +++ b/clang/unittests/Frontend/OutputStreamTest.cpp @@ -58,6 +58,7 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamShared) { std::string VerboseBuffer; raw_string_ostream VerboseStream(VerboseBuffer); + Compiler.setOutputStream(std::make_unique()); Compiler.setInvocation(std::move(Invocation)); IntrusiveRefCntPtr DiagOpts = new DiagnosticOptions(); Compiler.createDiagnostics( @@ -86,6 +87,7 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamOwned) { std::unique_ptr VerboseStream = std::make_unique(VerboseBuffer); + Compiler.setOutputStream(std::make_unique()); Compiler.setInvocation(std::move(Invocation)); IntrusiveRefCntPtr DiagOpts = new DiagnosticOptions(); Compiler.createDiagnostics( -- 2.7.4