| Index: tools/testing/dart/test_runner.dart
|
| diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
|
| index 3db97e59ecf58ee6f963e18c9208c16d6a3db912..8808912286dafdce739ef42d2890d6888d1914d4 100644
|
| --- a/tools/testing/dart/test_runner.dart
|
| +++ b/tools/testing/dart/test_runner.dart
|
| @@ -161,14 +161,17 @@ class TestOutput {
|
| if (line == 'PASS' && previous_line == 'Content-Type: text/plain') {
|
| return (exitCode != 0 && !hasCrashed);
|
| }
|
| - // If the browser test failed, it may have been because DumpRenderTree
|
| - // and the virtual framebuffer X server didn't hook up.
|
| + previous_line = line;
|
| + }
|
| +
|
| + // If the browser test failed, it may have been because DumpRenderTree
|
| + // and the virtual framebuffer X server didn't hook up.
|
| + for (String line in stderr) {
|
| if (line.contains('Gtk-WARNING **: cannot open display: :99')) {
|
| // If we get the X server error, return the expected value
|
| // We cannot restart the test from here. Issue dart:1135 is filed.
|
| return testCase.isNegative;
|
| }
|
| - previous_line = line;
|
| }
|
| return true;
|
| }
|
|
|