forked from firka/flutter
Revert "Test running the macOS engine has no stray logging" (flutter/engine#54778)
This reverts commit 7e82588c31.
Revert https://github.com/flutter/engine/pull/54716. This new check is flaking and isn't very high-value.
https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8738562907128595441/+/u/test:_Host_Tests_for_host_profile/stdout
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
@@ -210,7 +210,6 @@ TEST_F(FlutterEngineTest, CanLogToStdout) {
|
||||
|
||||
// Replace stdout stream buffer with our own.
|
||||
StreamCapture stdout_capture(&std::cout);
|
||||
StreamCapture stderr_capture(&std::cerr);
|
||||
|
||||
// Launch the test entrypoint.
|
||||
FlutterEngine* engine = GetFlutterEngine();
|
||||
@@ -220,12 +219,9 @@ TEST_F(FlutterEngineTest, CanLogToStdout) {
|
||||
latch.Wait();
|
||||
|
||||
stdout_capture.Stop();
|
||||
stderr_capture.Stop();
|
||||
|
||||
// Verify hello world was written to stdout.
|
||||
// Check equality to ensure no unexpected stray logging.
|
||||
EXPECT_EQ(stdout_capture.GetOutput(), "flutter: Hello logging\n");
|
||||
EXPECT_TRUE(stderr_capture.GetOutput().empty());
|
||||
EXPECT_TRUE(stdout_capture.GetOutput().find("Hello logging") != std::string::npos);
|
||||
}
|
||||
|
||||
TEST_F(FlutterEngineTest, DISABLED_BackgroundIsBlack) {
|
||||
|
||||
Reference in New Issue
Block a user