mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 01:29:52 +00:00
[FrontendTests] Try again to make test not write an output file
Setting the output stream to nulls seems to work. llvm-svn: 375491
This commit is contained in:
parent
1876e6c83c
commit
ecc999101a
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user