Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Issue 9538009: test.dart sometimes associates the wrong stderr with a task. (Closed)

Created:
8 years, 9 months ago by zundel
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

test.dart sometimes associates the wrong stderr with a task. Problem is due to stdout status being processed before all of stderr is read. http://code.google.com/p/dart/issues/detail?id=1898 Committed: https://code.google.com/p/dart/source/detail?r=4770

Patch Set 1 #

Patch Set 2 : : Adds a method to drain stderr #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -28 lines) Patch
M tools/testing/dart/test_runner.dart View 1 7 chunks +66 lines, -28 lines 9 comments Download

Messages

Total messages: 6 (0 generated)
zundel
8 years, 9 months ago (2012-02-29 18:54:10 UTC) #1
Siggi Cherem (dart-lang)
lgtm with my partial understanding of this code. I'm adding Emily and John in case ...
8 years, 9 months ago (2012-02-29 19:13:32 UTC) #2
Emily Fortuna
Just a few comments -- the Stream APIs are a bit confusing in their current ...
8 years, 9 months ago (2012-02-29 19:59:03 UTC) #3
zundel
Thank you for your feedback Siggi and Emily. https://chromiumcodereview.appspot.com/9538009/diff/1003/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart (right): https://chromiumcodereview.appspot.com/9538009/diff/1003/tools/testing/dart/test_runner.dart#newcode469 tools/testing/dart/test_runner.dart:469: // ...
8 years, 9 months ago (2012-02-29 20:19:08 UTC) #4
Emily Fortuna
lgtm! And hopefully we get these APIs fixed soon!
8 years, 9 months ago (2012-02-29 20:23:41 UTC) #5
Mads Ager (google)
8 years, 9 months ago (2012-03-01 07:02:59 UTC) #6
I don't understand this change. This should not be needed. All of the output
should become available for reading with the normal streaming behavior on
stderr. Can't you put an end token in the stderr in the same way there is an end
token in stdout. That way you can use the normal streaming API until you have
received both and only then signal that you are ready for another test?

Having a flush method will not work. stderr is an InputStream. You cannot flush
input.

Powered by Google App Engine
This is Rietveld 408576698