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

Issue 11032047: Fix issues with test.dart that appeared on Mac. (Closed)

Created:
8 years, 2 months ago by Mads Ager (google)
Modified:
8 years, 2 months ago
Reviewers:
ricow1, ahe, Emily Fortuna
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix issues with test.dart that appeared on Mac. The issue was that we did not properly wait for subprocesses to die. This was hidden by the fact that we always used exit to exit from test.dart. I have removed all exit(0) calls from test.dart to keep us honest. If nothing went wrong test.dart should terminate with exit code 0 automatically. R=ricow@google.com,ahe@google.com BUG=dartbug.com/5644 Committed: https://code.google.com/p/dart/source/detail?r=13286

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -79 lines) Patch
M tools/test.dart View 1 chunk +13 lines, -28 lines 0 comments Download
M tools/testing/dart/http_server.dart View 2 chunks +2 lines, -20 lines 0 comments Download
M tools/testing/dart/test_progress.dart View 3 chunks +6 lines, -5 lines 2 comments Download
M tools/testing/dart/test_runner.dart View 4 chunks +14 lines, -26 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
Mads Ager (google)
8 years, 2 months ago (2012-10-05 11:32:02 UTC) #1
ahe
LGTM!
8 years, 2 months ago (2012-10-05 11:40:44 UTC) #2
ricow1
LGTM
8 years, 2 months ago (2012-10-05 11:41:29 UTC) #3
regis
On 2012/10/05 11:41:29, ricow1 wrote: > LGTM It appears that since this cl, it is ...
8 years, 2 months ago (2012-10-05 18:48:52 UTC) #4
regis
On 2012/10/05 18:48:52, regis wrote: > On 2012/10/05 11:41:29, ricow1 wrote: > > LGTM > ...
8 years, 2 months ago (2012-10-05 19:41:10 UTC) #5
Emily Fortuna
https://codereview.chromium.org/11032047/diff/1/tools/testing/dart/test_progress.dart File tools/testing/dart/test_progress.dart (right): https://codereview.chromium.org/11032047/diff/1/tools/testing/dart/test_progress.dart#newcode89 tools/testing/dart/test_progress.dart:89: if (_failedTests) exit(1); if(3) is equivalent to if(false). I ...
8 years, 2 months ago (2012-10-06 00:11:55 UTC) #6
Mads Ager (google)
8 years, 2 months ago (2012-10-06 06:24:08 UTC) #7
https://codereview.chromium.org/11032047/diff/1/tools/testing/dart/test_progr...
File tools/testing/dart/test_progress.dart (right):

https://codereview.chromium.org/11032047/diff/1/tools/testing/dart/test_progr...
tools/testing/dart/test_progress.dart:89: if (_failedTests) exit(1);
On 2012/10/06 00:11:55, Emily Fortuna wrote:
> if(3) is equivalent to if(false). I fixed this in this CL:
> https://codereview.chromium.org/11071003/

Thanks for the fix!

https://codereview.chromium.org/11032047/diff/1/tools/testing/dart/test_runne...
File tools/testing/dart/test_runner.dart (left):

https://codereview.chromium.org/11032047/diff/1/tools/testing/dart/test_runne...
tools/testing/dart/test_runner.dart:757: if (_isWebDriver) {
On 2012/10/06 00:11:55, Emily Fortuna wrote:
> DBC -- why are no longer doing this graceful shutdown for the browser tests?
> This can result in 100s of browser windows open on test failures.

Because the TODO has been fixed and a kill sends the right signal to do a
graceful shutdown. Additionally, this code makes test.dart hang for 30 seconds
no matter if the processes are dead or not because we have to wait for the 30
second timeout to fire.

Powered by Google App Engine
This is Rietveld 408576698