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 | ecc999101aadc8dc7d4af9fd88be10fe42674aa0 (patch) | |
tree | b3c556a2254cfe4c7d3ad568d9c72144d7704e46 /clang/unittests | |
parent | 1876e6c83c7a713de2851af686417892cd717adc (diff) | |
download | bcm5719-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')
-rw-r--r-- | clang/unittests/Frontend/OutputStreamTest.cpp | 2 |
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( |