From 65acf43270ea2894dffa0d0b292b92402f80c8cb Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 22 Oct 2019 08:44:34 +0000 Subject: [FrontendTests] Try again to make test not write an output file 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 --- unittests/Frontend/OutputStreamTest.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()); 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( -- cgit v1.2.3