aboutsummaryrefslogtreecommitdiff
path: root/flang/unittests/Frontend
diff options
context:
space:
mode:
Diffstat (limited to 'flang/unittests/Frontend')
-rw-r--r--flang/unittests/Frontend/CodeGenActionTest.cpp2
-rw-r--r--flang/unittests/Frontend/CompilerInstanceTest.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/flang/unittests/Frontend/CodeGenActionTest.cpp b/flang/unittests/Frontend/CodeGenActionTest.cpp
index 9d798c7..5d75de0 100644
--- a/flang/unittests/Frontend/CodeGenActionTest.cpp
+++ b/flang/unittests/Frontend/CodeGenActionTest.cpp
@@ -103,7 +103,7 @@ TEST(CodeGenAction, GracefullyHandleLLVMConversionFailure) {
action.setCurrentInput(file);
consumeError(action.execute());
- ASSERT_EQ(diagnosticsOS.str(),
+ ASSERT_EQ(diagnosticOutput,
"error: Lowering to LLVM IR failed\n"
"error: failed to create the LLVM module\n");
}
diff --git a/flang/unittests/Frontend/CompilerInstanceTest.cpp b/flang/unittests/Frontend/CompilerInstanceTest.cpp
index 35f1ec1..3fe2f06 100644
--- a/flang/unittests/Frontend/CompilerInstanceTest.cpp
+++ b/flang/unittests/Frontend/CompilerInstanceTest.cpp
@@ -90,6 +90,6 @@ TEST(CompilerInstance, AllowDiagnosticLogWithUnownedDiagnosticConsumer) {
// 6. Verify that the reported diagnostic wasn't lost and did end up in the
// output stream
- ASSERT_EQ(diagnosticsOS.str(), "error: expected no crash\n");
+ ASSERT_EQ(diagnosticOutput, "error: expected no crash\n");
}
} // namespace