summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Frontend/OutputStreamTest.cpp
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
commitecc999101aadc8dc7d4af9fd88be10fe42674aa0 (patch)
treeb3c556a2254cfe4c7d3ad568d9c72144d7704e46 /clang/unittests/Frontend/OutputStreamTest.cpp
parent1876e6c83c7a713de2851af686417892cd717adc (diff)
downloadbcm5719-llvm-ecc999101aadc8dc7d4af9fd88be10fe42674aa0.tar.gz
bcm5719-llvm-ecc999101aadc8dc7d4af9fd88be10fe42674aa0.zip
[FrontendTests] Try again to make test not write an output file
Setting the output stream to nulls seems to work. llvm-svn: 375491
Diffstat (limited to 'clang/unittests/Frontend/OutputStreamTest.cpp')
-rw-r--r--clang/unittests/Frontend/OutputStreamTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Frontend/OutputStreamTest.cpp b/clang/unittests/Frontend/OutputStreamTest.cpp
index 14537ecdc56..6a867bf053c 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<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(
OpenPOWER on IntegriCloud