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

Issue 11086019: Update test.dart to do the same on all platforms for tests run (Closed)

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

Description

Update test.dart to do the same on all platforms for tests run through selenium. Remove the explicit exit(0) which can hide other issues. Cancel the kill timer when the process terminates gracefully (which was one of those issues hidden by the explicit exit(0)). R=efortuna@google.com,gram@google.com,ahe@google.com,ricow@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=13396

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M tools/testing/dart/test_progress.dart View 3 chunks +3 lines, -5 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 chunk +6 lines, -4 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
Mads Ager (google)
8 years, 2 months ago (2012-10-09 06:46:32 UTC) #1
Mads Ager (google)
Sorry for breaking the selenium tests on Windows, Emily. More proof that we all (especially ...
8 years, 2 months ago (2012-10-09 06:48:59 UTC) #2
ahe
LGTM!
8 years, 2 months ago (2012-10-09 07:03:17 UTC) #3
Emily Fortuna
lgtm... how do you explain the change in test status from http://chromegw.corp.google.com/i/client.dart/builders/dart2js-ie-win7-html/builds/575 and then this ...
8 years, 2 months ago (2012-10-09 17:52:06 UTC) #4
Jennifer Messerly
https://codereview.chromium.org/11086019/diff/1/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/11086019/diff/1/tools/testing/dart/test_runner.dart#newcode761 tools/testing/dart/test_runner.dart:761: // the open browser processes. On Windows, signals do ...
8 years, 2 months ago (2012-10-09 17:54:56 UTC) #5
Emily Fortuna
https://codereview.chromium.org/11086019/diff/1/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/11086019/diff/1/tools/testing/dart/test_runner.dart#newcode761 tools/testing/dart/test_runner.dart:761: // the open browser processes. On Windows, signals do ...
8 years, 2 months ago (2012-10-09 18:01:41 UTC) #6
Jennifer Messerly
On 2012/10/09 18:01:41, Emily Fortuna wrote: > https://codereview.chromium.org/11086019/diff/1/tools/testing/dart/test_runner.dart > File tools/testing/dart/test_runner.dart (right): > > https://codereview.chromium.org/11086019/diff/1/tools/testing/dart/test_runner.dart#newcode761 ...
8 years, 2 months ago (2012-10-09 18:06:28 UTC) #7
Mads Ager (google)
8 years, 2 months ago (2012-10-09 18:56:17 UTC) #8
On 2012/10/09 18:06:28, John Messerly wrote:
> On 2012/10/09 18:01:41, Emily Fortuna wrote:
> >
>
https://codereview.chromium.org/11086019/diff/1/tools/testing/dart/test_runne...
> > File tools/testing/dart/test_runner.dart (right):
> > 
> >
>
https://codereview.chromium.org/11086019/diff/1/tools/testing/dart/test_runne...
> > tools/testing/dart/test_runner.dart:761: // the open browser processes. On
> > Windows, signals do not exist
> > On 2012/10/09 17:54:56, John Messerly wrote:
> > > I'm confused by this comment. See:
> > >
http://msdn.microsoft.com/en-us/library/dwwzkt4c%252528v=vs.100%252529.aspx
> > > and
http://msdn.microsoft.com/en-us/library/xdkz3x12%252528v=vs.100%252529.aspx
> > > 
> > > Granted, I haven't tried this in a long time, but IIRC Python on Windows
has
> > > basic signal support.
> > 
> > It does
> > http://docs.python.org/library/subprocess.html#subprocess.Popen.send_signal
> (and
> > also the Python win32 API)
> > 
> > Dart just has to send the right information when closing the process, which
it
> > is currently not doing: http://code.google.com/p/dart/source/detail?r=8541
> 
> Makes me wonder what kind of spooky Win32 magic Python is doing to make that
> work :)
> 
> in particular the note about creationflags: CREATE_NEW_PROCESS_GROUP makes me
> wonder if they're using "CreateJobObject" or something similar. That's one of
> the ways to get a process group to terminate together.
> 
> Sigh, Windows :\

Yes, I wonder what they are doing too to make it look to Python programmers like
they can send signals on an OS that has no signals. :-)

They might be using something like process groups. However, it is non-trivial to
decide what to put in a process group unless you allow the programmer to do it
himself. Which processes started from Dart do you want to be in the same process
group? Probably none of them because you want to kill them individually and not
have the other's die at the same time.

Anyway, we should look into making 'kill' a more graceful shutdown on Windows.
There *should* be a way to do that. :-)

Powered by Google App Engine
This is Rietveld 408576698